%---------------- Functions ------------

\chapter{Menuitem.mui/Menuitem.mui}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf FUNCTION]
Menuitem class describes a single menu item. You can use
all of the gadtools menus features expect Image menus here.

Since Menuitem class is a subclass of Family class, you can
add other menu items as children of a menu item to indicate
sub menus. MUI does not limit the level of sub menus, but
the operating system currently allows a maximum nesting
level of one. Because of this, children of menu items
should not contain other menu items for now, the results
are unpredictable.

Note: For handling menu items, MUIA\_UserData and the methods
MUIM\_SetUData, MUIM\_GetUData and MUIM\_FindUData can become
quite useful. See the Menu demo program and the accompanying
 documentation for details.


\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Checked}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Checked]  -- (V8 ) [ISG], BOOL
\end{description}

\item[\bf FUNCTION]
set/get the checked state of a checkit menu item.

\item[\bf SEE ALSO]
MUIA\_Menuitem\_Checkit, MUIA\_Menuitem\_Enabled,
MUIA\_Menuitem\_Exclude
\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Checkit}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Checkit]  -- (V8 ) [ISG], BOOL
\end{description}

\item[\bf FUNCTION]
Set to TRUE and this item will become a checkmarkable item.

\item[\bf SEE ALSO]
MUIA\_Menuitem\_Checked, MUIA\_Menuitem\_Enabled,
MUIA\_Menuitem\_Exclude
\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Enabled}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Enabled]  -- (V8 ) [ISG], BOOL
\end{description}

\item[\bf FUNCTION]
enabled/disalbe the menu item.

\item[\bf SEE ALSO]
MUIA\_Menuitem\_Checkit, MUIA\_Menuitem\_Checked,
MUIA\_Menuitem\_Exclude
\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Exclude}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Exclude]  -- (V8 ) [ISG], LONG
\end{description}

\item[\bf FUNCTION]
bitmask of menu item numbers that are to be deselected
when this one is selected.

\item[\bf SEE ALSO]
MUIA\_Menuitem\_Checkit, MUIA\_Menuitem\_Enabled,
MUIA\_Menuitem\_Checked
\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Shortcut}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Shortcut]  -- (V8 ) [ISG], STRPTR
\end{description}

\item[\bf SPECIAL INPUTS]
\begin{flushleft}
\begin{verbatim}
MUIV_Menuitem_Shortcut_Check
\end{verbatim}
\end{flushleft}
\item[\bf FUNCTION]
Define the shortcut for a menu item.

\item[\bf SEE ALSO]
MUIA\_Menuitem\_Title
\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Title}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Title]  -- (V8 ) [ISG], STRPTR
\end{description}

\item[\bf FUNCTION]
Define the items title.

\item[\bf SEE ALSO]
MUIA\_Menuitem\_Shortcut
\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Toggle}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Toggle]  -- (V8 ) [ISG], BOOL
\end{description}

\item[\bf FUNCTION]
Define the state of the TOGGLE flag for this item.

\item[\bf SEE ALSO]
MUIA\_Menuitem\_Checkit, MUIA\_Menuitem\_Enabled,
MUIA\_Menuitem\_Checked
\end{deflist}


\subsection{Menuitem.mui/MUIA\_Menuitem\_Trigger}
\rule{\textwidth}{1mm}
\vspace{0.5cm}
\begin{deflist}{MMMMMMMM}
\item[\bf NAME]
\begin{description}
\item[MUIA\_Menuitem\_Trigger]  -- (V8 ) [..G], struct MenuItem *
\end{description}

\item[\bf FUNCTION]
This attribute is set to a pointer to the struct MenuItem of
the item object when the item is selected. By setting up
notification on this attribute with MUIV\_EveryTime, you can
react on menu actions and query the MenuItems flags
immediately.

Note that menu reactions are also possible any
maybe a bit easier with MUIA\_Application\_ReturnID,
MUIA\_Application\_MenuAction and MUIA\_Window\_MenuAction.

\end{deflist}


%---------------- End of File ----------
