Cmenu

 view release on metacpan or  search on metacpan

Cmenu.pm  view on Meta::CPAN

#    &echo();
#    &nocbreak();
#    &curs_set(1);
# keypad control is only applied to new windows which should always be destroyed
# before returning.
# ----------------------------------------------------------------------------------
# &menu_initialise      : sets up all menu variables and constructs
# &menu_button_set      : swicthes menu buttons on and off
# &menu_item            : create a menu item
# &menu_display         : display a menu and get a response from it
# &menu_popup           : flash a busy window
# &menu_show            : gives a full screen text display
# &menu_terminate       : close the menu environment down
# ----------------------------------------------------------------------------------
# All Curses functions can of course be used in user programs but be aware that
# management of all windows then becomes the users responsibility and behaviour
# of the menuing environment may be unpredictable
# ##################################################################################

# ##################################################################################
# Variable Definitions

doc/Cmenu.tex  view on Meta::CPAN

\begin{center}
\&menu\_show(``Data Response'',\$sel,''HELP'');
\end{center}
This will show what Cmenu is returning from a particular call.

\subsection{menu\_popup}
This is an extra routine which you may never need. It provides a way of displaying information while a process is being performed rather than the script stalling silently. It is called in two forms; first to display the popup and then to remove it;
\begin{description}
\item [menu\_popup(\$header,\$message)] This creates a popup which overlays the current menu. A very small window is opened with a drawn border and \textbf{\$header} displayed in the centre of the top line. The \textbf{\$message} is displayed in the ...

After calling this, your script should go off and busy itself until ready to talk to the user again
\item [menu\_popup()] call the same routine with no parameters and the Popup menu will be removed.
\end{description}
Please remember to close the popup as dangling windows can trash your display.

\subsection{menu\_show(\$title,\$message,\$style)} 
This provides for splash screens to be shown to the user either reporting difficulties, errors, providing help or asking for confirmation of responses. The routine draws a full window covering the normal menu space (not the backdrop). It accepts thre...
\begin{description}
\item [\$title] Gives the window a title included in the border
\item [\$message] provides the actual text message. If this can be fitted onto a single line, it will be centred in the screen. If the text exceeds a single line width, it will be passed through \textbf{Text::Wrap} for formating. \textbf{Text::Wrap} ...
\item [\$style] using different colours, a different meaning can be associated with splash screens. Also a simple button bar will be drawn for each type so that users can confirm or reject options as required. Responses from menu\_show will be either...

doc/html/node14.html  view on Meta::CPAN


<H2><A NAME="SECTION00057000000000000000">
menu_popup</A>
</H2>
This is an extra routine which you may never need. It provides a way of displaying information while a process is being performed rather than the script stalling silently. It is called in two forms; first to display the popup and then to remove it;
<DL>
<DT><STRONG>menu_popup($header,$message)</STRONG></DT>
<DD>This creates a popup which overlays the current menu. A very small window is opened with a drawn border and <B>$header</B> displayed in the centre of the top line. The <B>$message</B> is displayed in the body of the window on a single line (no wo...

<P>
After calling this, your script should go off and busy itself until ready to talk to the user again
</DD>
<DT><STRONG>menu_popup()</STRONG></DT>
<DD>call the same routine with no parameters and the Popup menu will be removed.
</DD>
</DL>
Please remember to close the popup as dangling windows can trash your display.

<P>
<BR><HR>
<ADDRESS>



( run in 0.399 second using v1.01-cache-2.11-cpan-87723dcf8b7 )