Gif Posted August 12, 2007 Share Posted August 12, 2007 (edited) this is nothing important, but i thought to ask, i make a window and i want to set a limit in its resizing, so i use this:#include <GuiConstants.au3> $Gui = GUICreate('', 500, 500, -1, -1, BitOR($WS_SIZEBOX,$WS_MAXIMIZEBOX,$WS_MINIMIZEBOX)) GUISetState() While 1 $ms = GUIGetMsg() If $ms = $GUI_EVENT_CLOSE Then Exit EndIf $ps = WinGetPos($Gui) If $ps[2] < 300 Or $ps[3] < 300 Then WinMove($Gui, '', $ps[0], $ps[1], 300, 300) EndIf WEndbut when i resize, if the size gets lower than 300 i doesnt resize back until i stop resizing bit of difficult to explain, try the code and you ll seeany solutions? Edited August 12, 2007 by Gif Link to comment Share on other sites More sharing options...
Zedna Posted August 12, 2007 Share Posted August 12, 2007 Look here Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Gif Posted August 12, 2007 Author Share Posted August 12, 2007 (edited) Look herethats great, thanks zedna Edited August 12, 2007 by Gif 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