Excalibur Posted June 2, 2007 Share Posted June 2, 2007 Probably been asked 1000 times, but i did a search for it, and couldent manage to find anything. Is there any way to make an Au3 window resizeable so that when its open while the application is running the window can be resized, furthermore objects inside the window? Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein Link to comment Share on other sites More sharing options...
smashly Posted June 2, 2007 Share Posted June 2, 2007 Hi, If your meaning for the window to be resized by the program adding controls and resizing the window on the fly then you could look into WinGetPos(), WinMove(), GUICtrlSetResizing() and Opt("GUICoordMode") functions and options. With a bit of effort these will give you the ability to dynamically resize the window on the fly as controls are added. If your meaning that user is to be able to resize the window as needed then maybe have a look into GUI Control Styles in the help file appendix and GUICtrlSetResizing(). This is a good way to get the gui to resize the way a user wants and keeping the controls in position in the gui. Cheers Link to comment Share on other sites More sharing options...
Zedna Posted June 2, 2007 Share Posted June 2, 2007 (edited) #include <GUIConstants.au3> GUICreate("My GUI",300,200,-1,-1,BitOr($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX)) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WendEDIT:for controls use GUICtrlSetResizing() as has been said above Edited June 2, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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