jaswicki Posted March 16, 2009 Share Posted March 16, 2009 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. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 16, 2009 Share Posted March 16, 2009 (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 March 16, 2009 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jaswicki Posted March 16, 2009 Author Share Posted March 16, 2009 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. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 16, 2009 Share Posted March 16, 2009 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jaswicki Posted March 16, 2009 Author Share Posted March 16, 2009 Perfect. You have saved me a ton of time! Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now