- Ajuda do Scilab
- IGU
- Borders
- Layouts
- uitree
- Editor Interativo
- about
- addmenu
- clipboard
- close
- Console properties
- createWindow
- delmenu
- exportUI
- figure
- findobj
- gcbo
- getcallbackobject
- getinstalledlookandfeels
- getlookandfeel
- getvalue
- loadGui
- messagebox
- printfigure
- printsetupbox
- progressionbar
- root_properties
- saveGui
- setlookandfeel
- setmenu
- toolbar
- toprint
- tree_show
- uicontextmenu
- uicontrol
- uicontrol properties
- uigetcolor
- uigetdir
- uigetfile
- uigetfont
- uimenu
- uimenu properties
- uiputfile
- unsetmenu
- usecanvas
- waitbar
- x_choices
- x_choose
- x_choose_modeless
- x_dialog
- x_matrix
- x_mdialog
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
uimenu
Create a menu or a submenu in a figure
Calling Sequence
h=uimenu([prop1,val1] [,prop2, val2] ...) h=uimenu(parent,[prop1, val1] [,prop2, val2] ...)
Arguments
- parent
Handle
Handle of the parent of the menu.
- prop{1, 2 ...}
String
Name of a property to set up.
All available properties are listed on the uimenu properties help page.
- val{1, 2 ...}
Scilab object
Value to affect to the corresponding property.
- h
Handle
Handle of the created menu.
Description
This function allows to create menus in a figure. If
parent
is a figure, then the menu item will be added to
the menu bar of the figure. If parent
is a menu item ,
then the new item will be added to the parent item, allowing to create
cascaded menus.
Examples
f=figure('position', [10 10 300 200]); // create a figure m=uimenu(f,'label', 'windows'); // create an item on the menu bar m1=uimenu(m,'label', 'operations'); m2=uimenu(m,'label', 'quit scilab', 'callback', "exit"); //create two items in the menu "windows" m11=uimenu(m1,'label', 'new window', 'callback',"show_window()"); m12=uimenu(m1,'label', 'clear window', 'callback',"clf()"); // create a submenu to the item "operations" close(f); // close the figure
Menus or menuitem can have a LaTeX or a MathML label
f=figure(); //LaTeX mlatex=uimenu(f,'label', '$\LaTeX$'); ml1=uimenu(mlatex,'label', '$\int_0^\infty\mathrm{e}^{-x^2}\,dx$'); ml2=uimenu(mlatex,'label', '$\frac\sqrt{\pi}2$'); //MathML mmathml=uimenu(f,'label', 'MathML'); mm1=uimenu(mmathml,'label', '<msup><mn>x</mn><mi>2</mi></msup>'); mm2=uimenu(mmathml,'label', '<mrow><msup><mn>a</mn><mi>2</mi></msup><mo>+</mo><msup><mn>b</mn><mi>2</mi></msup><mo>=</mo><msup><mn>c</mn><mi>2</mi></msup></mrow>');
See Also
- uimenu properties — Description of uimenu properties.
- figure — create a figure
- uicontrol — create a Graphic User Interface object
- uicontextmenu — Creates a context menu
- set — Ajusta um valor de propriedade de uma objeto entidade gráfica ou de um objeto Interface do Usuário (User Interface)
- get — Recupera um valor de propriedade de uma entidade de gráficos ou um objeto Interface do Usuário.
- LaTeX and MathML — Display mathematical equations in Scilab graphics through the LaTeX or MathML languages.
Report an issue | ||
<< uigetfont | IGU | uimenu properties >> |