Thread HList und eigene Scrollbar: Perl/Tk (13 answers)
Opened by esskar at 2005-08-27 15:04

esskar
 2005-08-27 15:04
#44427 #44427
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sub datalist {
$_[0]->{fl2r_datalist} = $_[1] if @_ > 1;
return $_[0]->{fl2r_datalist}
}

sub datalist_scroll_y {
$_[0]->{datalist_scroll_y} = $_[1] if @_ > 1;
return $_[0]->{datalist_scroll_y}
}

sub build_datalist {
my $self = shift;

$self->datalist(
$self->HList(
-columns => 6,
-header => 1,
-height => '15',
-background => 'white',
)->pack(
-fill => 'x',
)
);

$self->datalist_scroll_y(
$self->datalist->Scrollbar(
)->pack(
-side => 'right',
-fill => 'y',
)
);
}


die Hlist ist mit der Scrollbar bar nur noch 1 hoch; ohne die Scrollbar jedoch 15; woran liegt das? (PS: Scrolled will ich nicht nutzen)\n\n

<!--EDIT|esskar|1125140762-->

View full thread HList und eigene Scrollbar: Perl/Tk