Enable developer mode for Simulink Toolstrip
enables a developer mode that lets you get action and icon names for controls, such
as push buttons, in the Simulink® Toolstrip. You can use the action name to add a control that performs
the same action to a custom tab. For an example, see Specify Built-In Simulink Actions. You can use
the icon name to add a control that has the same icon to a custom tab. For an
example, see Define Custom Actions.
tf = slToolstripDeveloperMode(
To activate developer mode, set
Then, click anywhere on the Simulink Toolstrip.
If you click away from the Simulink Toolstrip, developer mode is temporarily deactivated. To reactivate developer mode, click anywhere on the Simulink Toolstrip.
When developer mode is active, to display the action and icon names in the MATLAB® Command Window, pause on the control in the Simulink Toolstrip and press Ctrl. On a Mac, press command (⌘) instead of Ctrl.
Enable Simulink Toolstrip Developer Mode
In the MATLAB Command Window, enable developer mode for the Simulink Toolstrip.
ans = logical 0
The function enables developer mode for the Simulink Toolstrip. The returned value indicates that developer mode was not enabled before you entered this command.
To activate developer mode, click anywhere on the Simulink Toolstrip.
On the Simulink Toolstrip, pause your pointer on a control. For example, pause on the Library Browser button.
Press Ctrl. The output in the MATLAB Command Window shows the shows the action and icon names for the button.
Action: showLibraryBrowserELBAction Icon: libraryBrowser -------------------
status — Desired status of developer mode
on/off logical value
Desired status of developer mode, specified as specified as
'off', or as numeric or logical
false). A value
'on' is equivalent to
'off' is equivalent to
false. Thus, you can use
the value of this property as a logical value. The value is stored as an on/off logical
value of type
By default, developer mode for the Simulink Toolstrip is disabled. Enable developer mode when you want to get the action and icon names of items in the Simulink Toolstrip.
tf — Previous status of developer mode
Previous status of developer mode, returned as a
0 of data type
Introduced in R2021b