Old 12-27-2020, 09:34 PM   #1
cohler
Banned
 
Join Date: Dec 2018
Posts: 642
Default Toggle Command State bit map

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.
cohler is offline   Reply With Quote
Old 12-27-2020, 09:42 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

I'll check on that and add it to my docs.
Interesting find...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 12-28-2020, 12:43 PM   #3
cohler
Banned
 
Join Date: Dec 2018
Posts: 642
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
I'll check on that and add it to my docs.
Interesting find...
Thanks, and let me know if you discover anything else about that.
cohler is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.