FunkyBunnies Posted March 26, 2009 Share Posted March 26, 2009 Hi all, I'm getting a script that uses a resizeable GUI running okay but I don't like the appearance of the sizebox frame. so I want to make a button in the bottom right corner like a lot of apps that'll allow you to resize the window. I figured I'd ask first though if it's been created already or how you'd go about approaching it if you don't mind? Thanks! Link to comment Share on other sites More sharing options...
Authenticity Posted March 26, 2009 Share Posted March 26, 2009 #include <GUIStatusBar.au3> #include <WindowsConstants.au3> Dim Const $GUI_SS_STYLE = BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_THICKFRAME) $hGUI = GUICreate('Title', 500, 300, Default, Default, $GUI_SS_STYLE) Dim $hStatusBar = _GUICtrlStatusBar_Create($hGUI) GUIRegisterMsg($WM_SIZE, 'WM_SIZE') GUISetState() Do Sleep(20) Until GUIGetMsg() = -3 Func WM_SIZE($hWnd, $iMsg, $wParam, $lParam) _GUICtrlStatusBar_Resize($hStatusBar) EndFunc Link to comment Share on other sites More sharing options...
FunkyBunnies Posted March 26, 2009 Author Share Posted March 26, 2009 (edited) Awesome, thanks Authenticity I'd like to avoid the thickframe style and use rounded corners for the window if possible, though So if I go that route, would I have to write my own function for resizing? Any suggestions would be awesome, I'm still a huge newb at this Edited March 26, 2009 by FunkyBunnies Link to comment Share on other sites More sharing options...
Authenticity Posted March 26, 2009 Share Posted March 26, 2009 If it's resizeable then it's OK I guess, hmm?. Link to comment Share on other sites More sharing options...
FunkyBunnies Posted March 27, 2009 Author Share Posted March 27, 2009 definitely, for functionality but the target users of the script I'm making are artists. Although I don't personally mind the windows classic look to it, some of my friends do. I guess I was just wondering if anyone had made a resize control for use with autoit or could explain the theory or some way to resize a gui with rounded corners without looking super ugly 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