Sign in to follow this  
Followers 0
jaswicki

Form Resizing

5 posts in this topic

Is there a way to resize a form within your code? Specifically I want my form to expand by about 200 pixels in height when I click a checkbox.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

First of all, Hi and welcome to the forum!

If you by form mean GUI/window, then the answer is yes. See WinMove() in the helpfile.

WinMove ( "title", "text", x, y [, width [, height[, speed]]] )

Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

Thanks and thank you for the quick reply. Is there any way for it to not redistribute the controls across the form when it resizes? I have other hidden controls on the form that I want to show rather than having the visible controls auto fill into the empty space.

Share this post


Link to post
Share on other sites

You can either change the default behaviour with Opt("GUIResizeMode", 0) (change the zero with the right value from the "Docking Values Table" in GUICtrlSetResizing() or use GUICtrlSetResizing() on every control you want to change.

Share this post


Link to post
Share on other sites

Perfect. You have saved me a ton of time! Thanks again.

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