Azzera filtri
Azzera filtri

Change the order of the menu bar`s items of the model

6 visualizzazioni (ultimi 30 giorni)
I used sl_customization to add a new item to the model's menu. Now I want to change the order of the items.
Is this possible ? I searched the internet but couldn't find any articles related to this.
Thanks in advance !
Adrian

Risposte (1)

TAB
TAB il 28 Ago 2012
Modificato: TAB il 28 Ago 2012
You can not change the order of Tool menu items which are predefined. But you can change the order of items added by you.
Custom menu items appears in the sequence in which they are assigned in cell array in the definition of custom menu function.
% Register custom menu function.
function sl_customization(cm)
cm.addCustomMenuFcn('Simulink:ToolsMenu', @MyMenuItems);
end
% Define the custom menu function.
function schemaFcns = MyMenuItems(callbackInfo)
%------You can change the sequence in the below line------
schemaFcns = {@getItem1,@getItem2,@getItem3,@getItem4};
end

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by