Jump to content

OnEvent mode in Tray menu


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...