@c DO NOT EDIT!  Generated automatically by genpropdoc.m.

@c Copyright (C) 2014-2026 The Octave Project Developers
@c
@c See the file COPYRIGHT.md in the top-level directory of this
@c distribution or <https://octave.org/copyright/>.
@c
@c This file is part of Octave.
@c
@c Octave is free software: you can redistribute it and/or modify it
@c under the terms of the GNU General Public License as published by
@c the Free Software Foundation, either version 3 of the License, or
@c (at your option) any later version.
@c
@c Octave is distributed in the hope that it will be useful, but
@c WITHOUT ANY WARRANTY; without even the implied warranty of
@c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@c GNU General Public License for more details.
@c
@c You should have received a copy of the GNU General Public License
@c along with Octave; see the file COPYING.  If not, see
@c <https://www.gnu.org/licenses/>.

Properties of @code{uimenu} objects (@pxref{XREFuimenu,,uimenu}):

@subsubheading Categories:

@ref{XREFuimenucategoryAppearance, , @w{Appearance}}@: | @ref{XREFuimenucategoryCallbackExecution, , @w{Callback Execution}}@: | @ref{XREFuimenucategoryCreation/Deletion, , @w{Creation/Deletion}}@: | @ref{XREFuimenucategoryDisplay, , @w{Display}}@: | @ref{XREFuimenucategoryKeyboardInteraction, , @w{Keyboard Interaction}}@: | @ref{XREFuimenucategoryMenuOptions, , @w{Menu Options}}@: | @ref{XREFuimenucategoryMouseInteraction, , @w{Mouse Interaction}}@: | @ref{XREFuimenucategoryObjectIdentification, , @w{Object Identification}}@: | @ref{XREFuimenucategoryObjectPosition, , @w{Object Position}}@: | @ref{XREFuimenucategoryParent/Children, , @w{Parent/Children}}@: 

@anchor{XREFuimenucategoryAppearance}
@subsubheading Appearance

@table @asis

@anchor{XREFuimenuforegroundcolor}
@prindex uimenu foregroundcolor
@item @code{foregroundcolor}: colorspec, def. @code{[0   0   0]}
The color value of the text for this menu entry.


@anchor{XREFuimenuseparator}
@prindex uimenu separator
@item @code{separator}: @{@qcode{"off"}@} | @qcode{"on"}
State indicating whether a separator line will be drawn above the current menu position.

@end table

@anchor{XREFuimenucategoryCallbackExecution}
@subsubheading Callback Execution

@table @asis

@anchor{XREFuimenubusyaction}
@prindex uimenu busyaction
@item @code{busyaction}: @qcode{"cancel"} | @{@qcode{"queue"}@}
Define how Octave handles the execution of this object's callback properties when it is unable to interrupt another object's executing callback.  This is only relevant when the currently executing callback object has its @code{interruptible} property set to @qcode{"off"}.  The @code{busyaction} property of the interrupting callback object indicates whether the interrupting callback is queued (@qcode{"queue"} (default)) or discarded (@qcode{"cancel"}).
@xref{Callbacks, , @w{Callbacks section}}.


@anchor{XREFuimenuinterruptible}
@prindex uimenu interruptible
@item @code{interruptible}: @qcode{"off"} | @{@qcode{"on"}@}
Specify whether this object's callback functions may be interrupted by other callbacks.  By default @code{interruptible} is @qcode{"on"} and callbacks that make use of @code{drawnow}, @code{figure}, @code{waitfor}, @code{getframe} or @code{pause} functions are eventually interrupted.
@xref{Callbacks, , @w{Callbacks section}}.


@anchor{XREFuimenumenuselectedfcn}
@prindex uimenu menuselectedfcn
@item @code{menuselectedfcn}: string | function handle, def. @code{[](0x0)}
Function that is called when this menu item is executed.  For information on how to write graphics listener functions see @ref{Callbacks, , @w{Callbacks section}}.

@end table

@anchor{XREFuimenucategoryCreation/Deletion}
@subsubheading Creation/Deletion

@table @asis

@anchor{XREFuimenubeingdeleted}
@prindex uimenu beingdeleted
@item @code{beingdeleted}: @{@qcode{"off"}@} | @qcode{"on"}
Property indicating that a function has initiated deletion of the object.  @code{beingdeleted} is set to true until the object no longer exists.


@anchor{XREFuimenucreatefcn}
@prindex uimenu createfcn
@item @code{createfcn}: string | function handle, def. @code{[](0x0)}
Callback function executed immediately after uimenu has been created.  Function is set by using default property on root object, e.g., @code{set (groot, "defaultuimenucreatefcn", 'disp ("uimenu created!")')}.

For information on how to write graphics listener functions see @ref{Callbacks, , @w{Callbacks section}}.


@anchor{XREFuimenudeletefcn}
@prindex uimenu deletefcn
@item @code{deletefcn}: string | function handle, def. @code{[](0x0)}
Callback function executed immediately before uimenu is deleted.

For information on how to write graphics listener functions see @ref{Callbacks, , @w{Callbacks section}}.

@end table

@anchor{XREFuimenucategoryDisplay}
@subsubheading Display

@table @asis

@anchor{XREFuimenuclipping}
@prindex uimenu clipping
@item @code{clipping}: @qcode{"off"} | @{@qcode{"on"}@}
If @code{clipping} is @qcode{"on"}, the uimenu is clipped in its parent axes limits.


@anchor{XREFuimenuvisible}
@prindex uimenu visible
@item @code{visible}: @qcode{"off"} | @{@qcode{"on"}@}
If @code{visible} is @qcode{"off"}, the uimenu is not rendered on screen.

@end table

@anchor{XREFuimenucategoryKeyboardInteraction}
@subsubheading Keyboard Interaction

@table @asis

@anchor{XREFuimenuaccelerator}
@prindex uimenu accelerator
@item @code{accelerator}: character, def. @qcode{""}
A character that when pressed together with CTRL will execute this menu entry (e.g., @qcode{"x"} for @code{CTRL+x}).

@end table

@anchor{XREFuimenucategoryMenuOptions}
@subsubheading Menu Options

@table @asis

@anchor{XREFuimenuchecked}
@prindex uimenu checked
@item @code{checked}: @{@qcode{"off"}@} | @qcode{"on"}
Sets whether or not a mark appears at this menu entry.


@anchor{XREFuimenuenable}
@prindex uimenu enable
@item @code{enable}: @qcode{"off"} | @{@qcode{"on"}@}
Sets whether this menu entry is active or is grayed out.


@anchor{XREFuimenutext}
@prindex uimenu text
@item @code{text}: string, def. @qcode{""}
The text for this menu entry.  A @qcode{"&"} character can be used to mark the @ref{XREFuimenuaccelerator, , @w{@qcode{"accelerator"} key}}

@end table

@anchor{XREFuimenucategoryMouseInteraction}
@subsubheading Mouse Interaction

@table @asis

@anchor{XREFuimenubuttondownfcn}
@prindex uimenu buttondownfcn
@item @code{buttondownfcn}: string | function handle, def. @code{[](0x0)}
@code{buttondownfcn} is unused.


@anchor{XREFuimenucontextmenu}
@prindex uimenu contextmenu
@item @code{contextmenu}: graphics handle, def. @code{[](0x0)}
Graphics handle of the uicontextmenu object that is currently associated to this uimenu object.


@anchor{XREFuimenuhittest}
@prindex uimenu hittest
@item @code{hittest}: @qcode{"off"} | @{@qcode{"on"}@}
Specify whether uimenu processes mouse events or passes them to ancestors of the object.  When enabled, the object may respond to mouse clicks by evaluating the @qcode{"buttondownfcn"}, showing the uicontextmenu, and eventually becoming the root @qcode{"currentobject"}.  This property is only relevant when the object can accept mouse clicks which is determined by the @qcode{"pickableparts"} property.  @xref{XREFuimenupickableparts, , @w{pickableparts property}}.


@anchor{XREFuimenupickableparts}
@prindex uimenu pickableparts
@item @code{pickableparts}: @qcode{"all"} | @qcode{"none"} | @{@qcode{"visible"}@}
Specify whether uimenu will accept mouse clicks.  By default, @code{pickableparts} is @qcode{"visible"} and only visible parts of the uimenu or its children may react to mouse clicks.  When @code{pickableparts} is @qcode{"all"} both visible and invisible parts (or children) may react to mouse clicks.  When @code{pickableparts} is @qcode{"none"} mouse clicks on the object are ignored and transmitted to any objects underneath this one.  When an object is configured to accept mouse clicks the @qcode{"hittest"} property will determine how they are processed.  @xref{XREFuimenuhittest, , @w{hittest property}}.


@anchor{XREFuimenuselected}
@prindex uimenu selected
@item @code{selected}: @{@qcode{"off"}@} | @qcode{"on"}
Property indicates whether this uimenu is selected.


@anchor{XREFuimenuselectionhighlight}
@prindex uimenu selectionhighlight
@item @code{selectionhighlight}: @qcode{"off"} | @{@qcode{"on"}@}
If @code{selectionhighlight} is @qcode{"on"}, then the uimenu's selection state is visually highlighted.

@end table

@anchor{XREFuimenucategoryObjectIdentification}
@subsubheading Object Identification

@table @asis

@anchor{XREFuimenutag}
@prindex uimenu tag
@item @code{tag}: string, def. @qcode{""}
A user-defined string to label the graphics object.


@anchor{XREFuimenutype}
@prindex uimenu type
@item @code{type} (read-only): string
Class name of the graphics object.  @code{type} is always @qcode{"uimenu"}.


@anchor{XREFuimenuuserdata}
@prindex uimenu userdata
@item @code{userdata}: Any Octave data, def. @code{[](0x0)}
User-defined data to associate with the graphics object.

@end table

@anchor{XREFuimenucategoryObjectPosition}
@subsubheading Object Position

@table @asis

@anchor{XREFuimenuposition}
@prindex uimenu position
@item @code{position}: scalar, def. @code{4}
A scalar value containing the relative menu position from the left or top depending on the orientation of the menu.

@end table

@anchor{XREFuimenucategoryParent/Children}
@subsubheading Parent/Children

@table @asis

@anchor{XREFuimenuchildren}
@prindex uimenu children
@item @code{children} (read-only): vector of graphics handles, def. @code{[](0x0)}
Graphics handles of the uimenu's children.


@anchor{XREFuimenuhandlevisibility}
@prindex uimenu handlevisibility
@item @code{handlevisibility}: @qcode{"callback"} | @qcode{"off"} | @{@qcode{"on"}@}
If @code{handlevisibility} is @qcode{"off"}, the uimenu's handle is not visible in its parent's @qcode{"children"} property.


@anchor{XREFuimenuparent}
@prindex uimenu parent
@item @code{parent}: graphics handle
Handle of the parent graphics object.

@end table