Jump to content

Resize a GUI?


Recommended Posts

This sure seems simple, but I've never had to do it before. I have created a GUI with a listview in it, etc. The size of the listview can vary based upon its contents. I need to have the ability to resize the main GUI that hosts the listview. Is there a quick and easy way to do this? :)

Link to comment
Share on other sites

This sure seems simple, but I've never had to do it before. I have created a GUI with a listview in it, etc. The size of the listview can vary based upon its contents. I need to have the ability to resize the main GUI that hosts the listview. Is there a quick and easy way to do this? :)

You can use WinGetPos() to grab the existing values for the GUI location, height and width.

Then follow up with a WinMove(), which will allow you to resize it. And just an extra note from the helpfile on WinMove():

If x and y equal to the Default keyword no move occurs, just resizing.

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

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
 Share

  • Recently Browsing   0 members

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