Custom Query
Results (250 - 252 of 3874)
Ticket |
---|
#251 |
Description |
The example script should be enough, but just to be clear, it appears that a function that returns inside a function that's been registered (via GUIRegisterMsg) makes the registered function ignore the internal message handler. A simple workaround is to Return $GUI_RUNDEFMSG regardless, but it worked fine back in 3.2.11.5 and bugs in 3.2.11.9 (I don't have any versions in between for testing, sorry), I'm putting down the latest version simply because the bug is still present. This may be a duplicate of #222, but I'm not sure. #include <GUIConstants.au3> #include <WindowsConstants.au3> Opt('GUIResizeMode', $GUI_DOCKBORDERS) $gui = GUICreate(@AutoItVersion, 200, 200, Default, Default, $WS_OVERLAPPEDWINDOW) GUICtrlCreateEdit('Control should size with window... but it does not.', 0, 0, 200, 200) GUISetState() GUIRegisterMsg($WM_SIZE, 'WM_SIZE') Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Func WM_SIZE() Test() ;~ Return $GUI_RUNDEFMSG ; Should not be required, but if you uncomment everything works fine. EndFunc Func Test() Return 1 EndFunc |
#252 |
Description |
This bug appears to have been introduced in 3.2.11.10. Steps to reproduce:
Global Const $WS_CHILD = 0x40000000 Global Const $GUI_EVENT_CLOSE = -3 $guiP = GUICreate(@AutoItVersion, 200, 200) GUICtrlCreateLabel('Label (Static1)', 0, 0, 200, 20) GUISetState() $guiC = GUICreate('', 200, 180, 0, 20, $WS_CHILD, Default, $guiP) GUICtrlCreateEdit('Edit (Edit1)', 0, 0, 200, 180) GUISetState() While 1 ToolTip(ControlGetFocus($guiP)) $gm = GUIGetMsg() If $gm = $GUI_EVENT_CLOSE Then ExitLoop WEnd |
#253 |
Description |
Some of them are from older AutoIt's ToDo lists and other comes from forum. I think some of the forum's scripts/UDFs could be as AutoIt's standard. * Original post is here: http://www.autoitscript.com/forum/[index.php?s=&showtopic=70888&view=findpost&p=519126] due to antispam restrictions on BugTrac (too many links) |