OnTheFly Posted April 7, 2008 Share Posted April 7, 2008 Hi, i'm having some problem using the event mode with a tray menu. It works fine wih the GUI. $tray_exit = TrayCreateItem("Exit") GUISetOnEvent(-1, "_Quit") I get no error. IT just doesn't work. It doesnt quit. I also tried GUISetOnEvent($tray_exit, "_Quit") But that didn't work either. The _Quit() works when i use events on the GUI. _Quit(): Func _Quit() Exit EndFunc Link to comment Share on other sites More sharing options...
smashly Posted April 7, 2008 Share Posted April 7, 2008 Hi, try Opt("TrayOnEventMode",1) Opt("TrayMenuMode",1) $tray_exit = TrayCreateItem("Exit") TrayItemSetOnEvent(-1, "_Quit");<-- TrayItem event, not Gui event While 1 Sleep(100) WEnd Func _Quit() Exit EndFunc Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now