Control appearance and behavior of context menu
The properties listed here are valid for
ContextMenu objects in GUIDE or in apps created with the
A context menu is a menu that appears when the user right-clicks on a graphics
object or UI component. The
uicontextmenu function creates a
context menu and sets any required properties. By changing property values, you can
modify the appearance and behavior of a context menu. Use dot notation to refer to a
specific object and property.
c = uicontextmenu; c.Position = [20 20];
Visible— Context menu visibility
Context menu visibility, specified as
'off'. You can use the
property in one of two ways:
Query the value to find out if the context menu is currently
posted. The context menu is posted while the
Visible property value is set to
Visible property to
'on' to make the context menu to appear.
Set this property to
'off' to make the
context menu to disappear.
Position— Context menu location
Content menu location, specified as the vector,
bottom]. This table describes each element in the
|Distance from the inner left edge of the figure to the left edge of the context menu|
|Distance from the inner bottom edge of the figure to the top edge of the context menu|
Position property defines the
location of a context menu when its
Visible property is
Type— Type of graphics object
This property is read-only.
Type of graphics object, returned as