I discovered quite randomly that setting various bits in the toggle command state using
Code:
reaper.SetToggleCommandState
does various interesting and potentially useful things.
It seems that whenever the command state is a positive integer, the associated Toolbar icon goes into its ON state, and when it is a negative integer it goes into its OFF state.
Does anybody know if there is a full spec for these command states somewhere?
Here's what I was able to discover...
- &1 determines whether command shows as checked or not in menu (or ON/OFF in the action list).
- &2 disables (greys out) menu command.
- &4 doesn't seem to do anything?
- &8 doesn't seem to do anything?
- &16 turns on a bullet before the menu item. Turning this bit off by itself, however, does not remove the bullet.
- &32 on with &16 off removes the bullet before the menu item.