Sign in to follow this  
Followers 0
c.haslam

Opt("TrayMenuMode",..): Proposed improvement for Help

3 posts in this topic

#1 ·  Posted (edited)

Here is my suggestion for making the Help for TrayMenuMode clearer for the novice:

Changes how Tray items operate. The defaults (value 0) are:

  • The AutoIt items Script paused/Exit are appended to the user’s menu items
  • Items created with TrayCreateItem(..,..,.., 1) act like auto-radios; all others act like checkboxes
  • If an item has the $TRAY_DEFAULT state, making it the default item, this item is shown in bold, and double-clicking the tray icon executes this item
Other possible values are 1 , 3, 5, 9, 11 and 13. They remove or change features of Mode 0, and are additions of the following numbers:
  • 1: The AutoIt items Script paused/Exit are not shown
  • 2: Items act neither as checkboxes not as auto-radios, unless specified by calling TrayItemSetState(..,$TRAY_CHECKED)
  • 4: Double-clicking the tray icon has no effect. An item with the $TRAY_DEFAULT state still shows in bold.
  • 8: Several radio-like items in a group can be selected at the same time, i.e. they act as manual radios not auto-radios
I encourage comments, corrections and suggestions.

relates.

Edited by c.haslam

...chris

Share this post


Link to post
Share on other sites



I do not seem to be able to get Opt("TrayMenuMode",8) to work. Opt("TrayMenuMode",8+1) does work OK.

So are there bit combinations that don't work?


...chris

Share this post


Link to post
Share on other sites

I have revised the original post based on experimentation.


...chris

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