Sign in to follow this  
Followers 0
num1g8rfan

Resize a GUI?

3 posts in this topic

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? :)

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

Worked like a charm! Thanks! :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0