Tk::BrowseEntry

Tk::BrowseEntry is a Perl entry widget with popup choices.
Download

Tk::BrowseEntry Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Rajappa Iyer and Chris Dean
  • Publisher web site:
  • http://search.cpan.org/~ni-s/Tk-804.027/pod/BrowseEntry.pod

Tk::BrowseEntry Tags


Tk::BrowseEntry Description

Tk::BrowseEntry is a Perl entry widget with popup choices. Tk::BrowseEntry is a Perl entry widget with popup choices.SYNOPSIS use Tk::BrowseEntry; $b = $frame->BrowseEntry(-label => "Label", -variable => $var); $b->insert("end", "opt1"); $b->insert("end", "opt2"); $b->insert("end", "opt3"); ... $b->pack;SUPER-CLASSThe BrowseEntry class is derived from the Frame class and inherits all the methods, options and subwidgets of its super-class. By default, options and methods are delegated to the entry subwidget.BrowseEntry is a poor man's ComboBox. It may be considered an enhanced version of LabEntry which provides a button to popup the choices of the possible values that the Entry may take. BrowseEntry supports all the options LabEntry supports except -textvariable. This is replaced by -variable. Other options that BrowseEntry supports:-arrowimageSpecifies the image to be used in the arrow button beside the entry widget. The default is an downward arrow image in the file cbxarrow.xbm-autolimitheightIf set to a true value, then the height of the listbox will be at most the number of entries in the list. The overall maximum of -listheight still applies.-autolistwidthIf set to a true value, then the width of the listbox will match the width of the largest entry.-browsecmdSpecifies a function to call when a selection is made in the popped up listbox. It is passed the widget and the text of the entry selected. This function is called after the entry variable has been assigned the value.-browse2cmdLike -browsecmd, but the callback is called with the listbox index instead of the selected value.-buttontakefocusSet the -takefocus option of the button subwidget.-choicesSpecifies the list of choices to pop up. This is a reference to an array of strings specifying the choices.-colorstateThe state of the widget is reflected by color. A non-editable entry widget will get a light gray background, while an editable entry will be almost white. -listcmdSpecifies the function to call when the button next to the entry is pressed to popup the choices in the listbox. This is called before popping up the listbox, so can be used to populate the entries in the listbox.-listheightSet the height of the listbox. See also -autolimitheight.-listwidthSpecifies the width of the popup listbox.-stateSpecifies one of three states for the widget: normal, readonly, or disabled. If the widget is disabled then the value may not be changed and the arrow button won't activate. If the widget is readonly, the entry may not be edited, but it may be changed by choosing a value from the popup listbox. normal is the default.-styleSet the "style" of the widget. Permitted values are MSWin32 and unix. By default -style is set to the current platform. Widgets with the unix style will look like a normal BrowseEntry widget, whereas with the MSWin32 style the arrow will look close to the Windows' standard combobox widget, while moving the mouse the entries will be highlighted, and probably includes other changes.-variableSpecifies the variable in which the entered value is to be stored. Requirements: · Perl


Tk::BrowseEntry Related Software