﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1692	GUICtrlSetOnEvent  - during event fuction other event are waiting untill the function will finished.	ziv_t@…		"#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 
"	Bug	closed		AutoIt	3.3.6.0	None	No Bug		
