Curses-Devkit
view release on metacpan or search on metacpan
fulldemo/help/menu.help view on Meta::CPAN
</R>Available Methods<!R>
</B>activate<!B>
Activation of an object means to make the object available for use. The
following example demonstrates how to activate a menu widget.
<C></B>$returnValue = $menuObject->activate ();
The variable </B>$returnValue<!B> is an integer value which represents the
selected item. The calculation of this value is determined as follows:
(100 * Current Title ) + Current Subtitle
To extract the correct menu item from this value use the following formula:
$menuList = int ( $returnValue / 100 );
$menuItem = ($returnValue % 100 );
You can then dereference the string value from the array using the above two
calculations.
</B>inject<!B>
This function injects a single character into the widget. The following
examples demonstrates how to call the inject method.
<C></B>$menuObject->inject ( options );
( run in 0.261 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )