Jump to content
Sign in to follow this  
c.haslam

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

Recommended Posts

c.haslam

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

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Share this post


Link to post
Share on other sites
c.haslam

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?


Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Share this post


Link to post
Share on other sites
c.haslam

I have revised the original post based on experimentation.


Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

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  

×