cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hogi
Level XIII

enable/disable toolbar icons

Toolbar icons appear gray if the window has the wrong type:

hogi_0-1668709808567.png vs. hogi_1-1668709841587.png

 

how can I control this behavior for my own toolbars?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XIII

Re: enable/disable toolbar icons

If a Toolbar Icon is linked to a Built-In command, it automatically gets the enable/disable functionality related to the respective command.
... even if the user chooses his own icon:

2023-04-21_23-23-17.gif

The easiest way to get a "dynamic" Icon into a user-defined toolbar
Got to View/Cutomize/Menus and Toolbars, and rightClick copy the original function and paste it into the user-defined Toolbar.

 

To get such Shortcut Icons into user-defined Add-Ins, one has to follow these steps shared by @Jeff_Perkinson 

 

Alternatively, one can edit the addin.jmpcust file manually.
The syntax is type="builtin":

<jm:command>
 <jm:name>TEXT TO COLUMNS</jm:name>
  <jm:caption>Text to Columns…</jm:caption>
  <jm:action type="builtin">COLS:UTILITIES:TEXT TO COLUMNS</jm:action>
 </jm:command>

View solution in original post

2 REPLIES 2
hogi
Level XIII

Re: enable/disable toolbar icons

hogi
Level XIII

Re: enable/disable toolbar icons

If a Toolbar Icon is linked to a Built-In command, it automatically gets the enable/disable functionality related to the respective command.
... even if the user chooses his own icon:

2023-04-21_23-23-17.gif

The easiest way to get a "dynamic" Icon into a user-defined toolbar
Got to View/Cutomize/Menus and Toolbars, and rightClick copy the original function and paste it into the user-defined Toolbar.

 

To get such Shortcut Icons into user-defined Add-Ins, one has to follow these steps shared by @Jeff_Perkinson 

 

Alternatively, one can edit the addin.jmpcust file manually.
The syntax is type="builtin":

<jm:command>
 <jm:name>TEXT TO COLUMNS</jm:name>
  <jm:caption>Text to Columns…</jm:caption>
  <jm:action type="builtin">COLS:UTILITIES:TEXT TO COLUMNS</jm:action>
 </jm:command>

Recommended Articles