Jump to content

Resizing a Window


HoppaLong

Recommended Posts

This is an open source app for advanced electronics hobbyists or professionals.  I respect the people who
authored this app, so I blanked out most of the windows contents.

A is the complete window.

I want to resize the window so the only visible area is the meter display (Not Active) at the bottom labeled B.

I tried NirCmd and Resource Hacker.  The results are the same.  The window is resized from the bottom up.
The image labeled
C is the problem.  The window class (not title) is TMainForm.

Here is the NirCmd I tried:
nircmd.exe win setsize class "TMainForm" x, y, width, height

I need to resize the window from the top down, so the meter display (B) is the only visible area.  It's ok if the
caption bar is included.

The apps listed at the Raymond.CC blog are popular, but I need an app that supports command lines for a script.

https://www.raymond.cc/blog/how-to-resize-an-unresizable-window-or-dialog-box/

NirCmd has a long list of windows commands (version 2.81).  Is there a way to combine or execute a few of
those commands to produce the results I need?

Full Window.jpg

What I Want to See.jpg

Resized Window.jpg

Link to comment
Share on other sites


The top-left corner of a window is always (0, 0), so it is impossible to resize a window from the top down. To get the effect you want, first you must reduce the height of the window and then move all the contents upward (child windows A and B in this case). If you have trouble moving "A" to a negative location, move it below "B" instead.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...