6
my $mw = new MainWindow;
8
$mb = $mw->Menubar(-borderwidth => 2, -relief => 'raised');
9
$mb->Menubutton(-text => '~Help',-side => 'right');
10
$mb->pack(-side => 'top', -fill => 'x');
12
$lm = $mw->Scrolled('ListMgr',
16
-background => 'WhiteSmoke',
17
-layout => 'vertical',
18
)->pack(-fill => 'both', -expand => 1);
21
$lm->subitemConfigure(0, -type => Image);
22
$lm->subitemConfigure(1, -type => Text);
23
$lm->subitemConfigure(2, -type => Text);
25
$f1 = $mw->Frame(-height => 20)->pack(-side => 'bottom', -fill => 'x');
26
$f1->Label(-text => 'Click middle button ...')->pack(-side => 'left');
30
$pm = $mw->Pixmap(-file => 'alpha/dir.xpm');
33
[$pm,"a longer text","a longer text"],
34
[$pm,"two","tdsdsawo"],
35
[$pm,"three","a longer text"],
36
[$pm,"four","a longer text"],
37
[$pm,"five","a longer text"],
38
[$pm,"a longer text"],
44
my $l = $lmgr->cget('-layout');
45
$lmgr->configure(-layout => $l eq 'vertical' ? 'horizontal' : 'vertical');