Tk::HListplus - A HList that supports resizing, open & close of columns |
Tk::HListplus - A HList that supports resizing, open & close of columns
use Tk; use Tk::HListplus;
my $mw = MainWindow->new();
# CREATE HEADER STYLE 1 my $headerstyle1 = $mw->ItemStyle('window', -padx => 0, -pady => 0);
# CREATE MY HLIST my $hlist = $mw->Scrolled('HListplus', -columns=>3, -header => 1, -headerstyle => $headerstyle1, )->pack(-side => 'left', -expand => 'yes', -fill => 'both');
# CREATE HEADER STYLE 2 my $headerstyle = $hlist->ItemStyle('window', -padx => 0, -pady => 0);
$hlist->header('create', 0, -itemtype => 'resizebutton', -style => $headerstyle, -text => 'Test Name', -activeforeground => 'red', ); $hlist->header('create', 1, -itemtype => 'resizebutton', -style => $headerstyle, -text => 'Status', -activebackground => 'orange', );
Tk::MainLoop;
A HList derived widget that has resizable columns, based on Header-ResizeButtons.
In addition, the following options may be specified:
Michael Krause, KrauseM_AT_gmx_DOT_net
Thanks for Tk::ResizeButton by Shaun Wandler <wandler@unixmail.compaq.com>, Slaven Rezic and Frank Herrmann.
This code may be distributed under the same conditions as Perl.
V0.4 (C) October 2006
Tk::HListplus - A HList that supports resizing, open & close of columns |