Tk::TiedListbox

Tk::TiedListbox - gang together Listboxes.
Download

Tk::TiedListbox Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Allen
  • Publisher web site:
  • http://search.cpan.org/~ach/Tk-Contrib-0.07/TiedListbox.pm

Tk::TiedListbox Tags


Tk::TiedListbox Description

Tk::TiedListbox - gang together Listboxes. Tk::TiedListbox - gang together Listboxes.SYNOPSIS use Tk::TiedListbox $l1 = $widget->Listbox(-exportselection => 0,...); $l2 = $widget->Listbox(-exportselection => 0,...); $l3 = $widget->Listbox(-exportselection => 0,...); $l1->tie();TiedListbox causes two or more Listboxes to be operated in tandem. One application is emulating multi-column listboxes. The scrolling, selection, or both mechanisms may be tied together. The methods tie and untie are provided, along with overridden versions of some of the Listbox methods to provide tandem operation.Scrollbars are fully supported. You can use either explicitly created Scrollbars, the ScrlListbox widget, or the Scrolled super-widget. Tricks to "attach" multiple tied listboxes to a single scrollbar are unnecessary and will lead to multiple calls of the listbox methods (a bad thing).The configuration options, geometry, and items of the Listboxes are not altered by tying them. The programmer will have to make sure that the setup of the Listboxes make sense together. Here are some (unenforced) guidelines:For listboxes with tied selection:· set -exportselection to 0 for all but possibly one Listbox· use identical -selectmode for all Listboxes· if items are added/deleted, they should be done all at once and at the same index, or the selection should be cleared· Listboxes should have the same number of itemsFor listboxes with tied scrolling:· use the same window height and font for all Listboxes· Listboxes should have the same number of items Requirements: · Perl


Tk::TiedListbox Related Software