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: 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 by J-Paul Mesnage, 16 years ago

Resolution: No Bug
Status: newclosed

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.