12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

uicontrol PropertiesFor multiple line editable text or static text controls, line breaks occur betweeneach row of the string matrix, each cell of a cell array of strings, and after any\n characters embedded in the string. Vertical slash (‘|’) characters are notinterpreted as line breaks, and instead show up in the text displayed in theuicontrol.For multiple items on a list box or pop-up menu, you can specify items as a cellarray of strings, a padded string matrix, or within a string vector separated byvertical slash (‘|’) characters.For editable text, this property value is set to the string entered by the user.Style {pushbutton} | togglebutton | radiobutton |checkbox | edit | text | slider | frame |listbox | popupmenuStyle of uicontrol object to create. The Style property specifies the kind ofuicontrol to create. See the “Description” section for information on each type.TagstringUser-specified object label. The Tag property provides a means to identifygraphics objects with a user-specified label. This is particularly useful whenconstructing interactive graphics programs that would otherwise need todefine object handles as global variables or pass them as arguments betweencallback routines. You can define Tag as any string.TooltipString stringContent of tooltip for object. The TooltipString property specifies the text ofthe tooltip associated with the uicontrol. When the user moves the mousepointer over the control and leaves it there, the tooltip is displayed. Moreinformation about this property.Typestring (read only)Class of graphics object. For uicontrol objects, Type is always the string'uicontrol'.UIContextMenu handleAssociate a context menu with uicontrol. Assign this property the handle of aUicontextmenu object. <strong>MATLAB</strong> displays the context menu whenever youright-click over the uicontrol. Use the uicontextmenu function to create thecontext menu. More information about this property.2-553

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!