KJohn Posted January 5, 2008 Share Posted January 5, 2008 This is pretty embarassing... I'm unable to create a resizable GUI using AutoIt. Is there any special style / extended style combination that I have to use to get it working? I'm using 3.2.10.0... Link to comment Share on other sites More sharing options...
ashley Posted January 5, 2008 Share Posted January 5, 2008 look don't be embarassed im sure eve jon comes across porblems... sorry i don't know i'll have a look:O Free icons for your programs Link to comment Share on other sites More sharing options...
KJohn Posted January 5, 2008 Author Share Posted January 5, 2008 look don't be embarassed im sure eve jon comes across porblems... sorry i don't know i'll have a look:O$WS_OVERLAPPEDWINDOW is the answer... lol...Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles. Same as the WS_TILEDWINDOW style. => no idea which of the "sub-styles" is responsible for resizing though...Thanks for your time anyway ashley! Link to comment Share on other sites More sharing options...
Alek Posted January 5, 2008 Share Posted January 5, 2008 WS_THICKFRAME i think [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
DirtDBaK Posted January 5, 2008 Share Posted January 5, 2008 (edited) umm hold on I have the answer to this EDIT: #include <GUIConstants.au3> $Form1 = GUICreate("Form1", 215, 137, -1, -1, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_OVERLAPPEDWINDOW,$WS_TILEDWINDOW,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS)) $Button1 = GUICtrlCreateButton("Button1", 8, 4, 75, 25 ) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd I tore that out of something I found by Saunders Edited January 5, 2008 by DBak [center][/center] Link to comment Share on other sites More sharing options...
Zedna Posted January 5, 2008 Share Posted January 5, 2008 (edited) This is pretty embarassing... I'm unable to create a resizable GUI using AutoIt. Is there any special style / extended style combination that I have to use to get it working? I'm using 3.2.10.0... This one isn't working? #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 Wend EDIT: only $WS_SIZEBOX style need to be added and I think this has nothing to do with/without Vista Edited January 5, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
DirtDBaK Posted January 5, 2008 Share Posted January 5, 2008 Works with XP SP2 [center][/center] Link to comment Share on other sites More sharing options...
KJohn Posted January 5, 2008 Author Share Posted January 5, 2008 This one isn't working? #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 Wend EDIT: only $WS_SIZEBOX style need to be added and I think this has nothing to do with/without Vista $WS_SIZEBOX and $WS_THICKFRAME work.. I found both quite easily in the help file now. I guess working too long can make you overlook things... And yes, it has nothing to do with Vista. I just stated that since nothing I did seemed to bring the feature into my application. Thanks Alex, Zedna and Dbak! 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