Term::Stool::Menu
Term::Stool::MeUser)Contributed Perl DocumentTerm::Stool::Menu(u)



NAME
       Term::Stool::Menu - a pull-down menu widget

DESCRIPTION
       This is a pull-down menu. It handles display of the menu
       header, and contains a List widget that is dropped down
       when the menu is active.

       Term::Stool::DropDown is the parent of this class.

FIELDS
       title
           The menu title.

       select_hook
           If this contains a sub reference, the subroutine will
           be called when an item is selected from the menu. Oth-
           erwise, the main event loop is exited when something
           is selected from the menu. To figure out what was
           selected, see $this->list->value

METHODS
       init
           Sets colors and fields above to reasonable defaults.

       display
           Besides drawing the widget, this also causes the
           attached list to be redrawn, if it is visible.

       activate
           When activated, automatically drop down the list.

       resize
           This moves the attached list to be right over the wid-
           get.

       keypress
           Trap space and enter, which mean a menu item has been
           selected and an action should probably be taken.

AUTHOR
       Joey Hess <joey@kitenet.net>



2001-05-23                 perl v5.6.1       Term::Stool::Menu(u)