Modify ↓
Opened 16 years ago
Closed 16 years ago
#1692 closed Bug (No Bug)
GUICtrlSetOnEvent - during event fuction other event are waiting untill the function will finished.
| Reported by: | 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)
Note:
See TracTickets
for help on using tickets.

AutoIT is not multithreaded so taking a long time in an event routine just freeze the whole process.