4Eyes Posted May 4, 2013 Posted May 4, 2013 Folks, I think this may have been asked and answered before, but having searched I can't find the answerm although I think it's related to GUICoordMode. I have a window with some icons in it. I want to be able to resize the window without moving the icons, just clip whatever doesn't fit inside the window. I have included below a simple script to show the problem. Thanks for any help. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate(" My GUI Icons", 250, 250, -1, -1, BitOR($WS_SIZEBOX, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX)) GUICtrlCreateIcon("shell32.dll", 10, 20, 20) GUICtrlCreateIcon("shell32.dll", 7, 20, 75, 32, 32) GUISetState() While 1 Local $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete()
4Eyes Posted May 4, 2013 Author Posted May 4, 2013 MouseSpotter, Thanks, that did it, but where did you come up with that? 802? 4Eyes
MouseSpotter Posted May 4, 2013 Posted May 4, 2013 Actually - I was having the same issue as you today and searched the forum for that fix.FYI:Opt("GUIResizeMode.. is the big brother of GUICtrlSetResizing -the help file of which has a list of resizing constants.One of which is $GUI_DOCKALL (802) "(2+32+256+512) so the control will not move during resizing"
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