Chorda Posted October 21, 2008 Share Posted October 21, 2008 Hi, I have this programs with a window that contains a few icons and labels, as well as the same features in a system tray menu. I decided to upgrade the tray menu with the UDF of @Holger (great job @Holger!!). http://www.autoitscript.com/forum/index.php?showtopic=23945&hl=traymenu+icon In order to make my icons and labels in the window clickable I use Opt("GUIOnEventMode",1). But this command blocks the events from the new menu. When I remove Opt("GUIOnEventMode",1) my tray menu works perfectly, but then nothing works in my window. I can see that in sampleGUIandTray.au3 there is no Opt("GUIOnEventMode",1), yet it still works. I'm puzzled. Any idea? Thanks Link to comment Share on other sites More sharing options...
Chorda Posted October 21, 2008 Author Share Posted October 21, 2008 nvm, I found the answer: You can't use both Opt("GUIOnEventMode",1) and GUIGetMsg() to handle the events. So I removed Opt("GUIOnEventMode",1) and put all of my events inside the switch. 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