bladem2003 Posted July 22, 2022 Posted July 22, 2022 with the new version of autoit (3.3.16.0) when you resize a popup gui the $GUI_DOCKBOTTOM doesn't work properly. In the example below, the label is not placed at the bottom of the gui. With 3.3.14.5 it works perfectly. in the changelog from 3.3.16.0 is : Fixed #3830 GUICtrlSetResizing() $GUI_DOCKBOTTOM fullscreen. is this a bug? and how can i fix it? #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $hGui = GUICreate("", 800, 450, -1, -1, BitOR($WS_POPUP, $WS_MINIMIZEBOX, $WS_SYSMENU)) GUISetBkColor(0x404040) $closebutton = GUICtrlCreateButton("X", 770, 2, 25, 25) GUICtrlSetBkColor(-1, 0xff0000) GUICtrlSetResizing(-1, $GUI_DOCKTOP + $GUI_DOCKHEIGHT + $GUI_DOCKWIDTH + $GUI_DOCKRIGHT) $maxbutton = GUICtrlCreateButton("M", 742, 2, 25, 25) GUICtrlSetResizing(-1, $GUI_DOCKTOP + $GUI_DOCKHEIGHT + $GUI_DOCKWIDTH + $GUI_DOCKRIGHT) $lblBottom = GUICtrlCreateLabel("", 0, 420, 800, 30) GUICtrlSetBkColor(-1, 0xff0000) GUICtrlSetResizing(-1, $GUI_DOCKBOTTOM + $GUI_DOCKLEFT + $GUI_DOCKHEIGHT + $GUI_DOCKRIGHT) GUISetState() $iMaximize = 0 While 1 Sleep(5) $GUIMsg = GUIGetMsg() If $GUIMsg = $closebutton Then Exit If $GUIMsg = $maxbutton Then If $iMaximize = 0 Then GUISetState(@SW_MAXIMIZE, $hGui) $iMaximize = 1 Else GUISetState(@SW_RESTORE, $hGui) $iMaximize = 0 EndIf EndIf WEnd
jpm Posted July 25, 2022 Posted July 25, 2022 Thanks, You right the fix was not handling a POPUP windows Will be fix in the next Beta/release Cheers
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