Change the order of the menu bar`s items of the model
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
TAB
el 28 de Ag. de 2012
Editada: TAB
el 28 de Ag. de 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
0 comentarios
Ver también
Categorías
Más información sobre Simulink Environment Customization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!