Quinch Posted September 5, 2008 Share Posted September 5, 2008 Quick question - how do I create a GUI window that can be resized by dragging the borders, and can I set minimum possible size, i.e. width and height values that the window cannot be resized under? Link to comment Share on other sites More sharing options...
Achilles Posted September 5, 2008 Share Posted September 5, 2008 When you create the GUI add $WS_SIZEBOX to the style. For setting the max/min use this GUIRegisterMsg($WM_GETMINMAXINFO, 'WM_GETMINMAXINFO') with this function Func WM_GETMINMAXINFO($hWnd, $MsgID, $wParam, $lParam) #forceref $MsgID, $wParam If $hWnd = $nowPlayingGUI Then; the main GUI-limited Local $minmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int", $lParam) DllStructSetData($minmaxinfo, 7, 300); min width DllStructSetData($minmaxinfo, 8, 200); min height EndIf Return 0 EndFunc Xandy 1 My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Quinch Posted September 5, 2008 Author Share Posted September 5, 2008 (edited) Thanks {though I have no idea how the second codebox works}. That brings out another problem, though... if I set the style as sizebox, I lose the window controls in the title bar. Edit: Ergh, disregard that. I mucked up the GuiCreate line. Edited September 5, 2008 by Quinch 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