Jump to content

Recommended Posts

Posted

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.

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
Posted

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.

Posted

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.

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
×
×
  • Create New...