Here's a simple way to add a message to all JMP Windows. This could be customized to determine which type of window, then display a different message for each window type. This could also be used in a custom Add-In that could be installed via a
custom JMP installation package so that it always runs when JMP opens.
This might be useful, for example, wherever a notification or message needs to be shown on each data table, reminding users of proprietary data or other regulations.
Ingredients:
- Platforms: n/a
- Objects: Can treat all windows as objects
- JSL Features: Set Global Window Handler( ), Clear Global Window Handler ( )
Sample Data Tables — n/a
Steps:
- The global window handler runs a specified function each time a new JMP window is created. The example JSL below appends a simple text message to each window.
-
Names Default To Here( 1 );
Set Global Window Handler(
Function( {window},
window << append (text box ("Sample Required Notification"));
)
);
- If desired, the handler could determine which type of window, then customize the message location or type based on the window type. This could be put into an add-in that runs each time JMP opens, so the behavior could be made automatic.
- To remove the function, use the JSL below:
-
Clear Global Window Handler();