Opened 14 years ago
Closed 14 years ago
#1692 closed Bug (No Bug)
GUICtrlSetOnEvent - during event fuction other event are waiting untill the function will finished.
Reported by: | ziv_t@… | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.6.0 | Severity: | None |
Keywords: | Cc: |
Description
#include <GUIConstantsEx.au3>
Opt("GUIOnEventMode", 1) ; Change to OnEvent mode
; GUI
$DlgHnd= GuiCreate("My App", @DesktopWidth-50,@DesktopHeight-50,0,0)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetState(@SW_SHOW)
; Menu
local $FileMenue = GUICtrlCreateMenu("File")
local $DoMyWhile = GUICtrlCreateMenuItem("Do_While", $FileMenue)
GUICtrlSetOnEvent($DoMyWhile , "MyWhile")
While 1
Sleep(100)
WEnd
Func MyWhile()
While 1
Sleep(100)
WEnd
EndFunc
Func CLOSEClicked()
Exit
EndFunc
During "MyWhile" the user cant close the dialog
Attachments (0)
Change History (1)
comment:1 Changed 14 years ago by Jpm
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
AutoIT is not multithreaded so taking a long time in an event routine just freeze the whole process.