Jump to content
Sign in to follow this  
jaswicki

Form Resizing

Recommended Posts

jaswicki

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
AdmiralAlkex

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
jaswicki

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
AdmiralAlkex

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
jaswicki

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.