Sign in to follow this  
Followers 0
Chorda

Opt("GUIOnEventMode",1) and ModernMenuRaw.au3

2 posts in this topic

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0