8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use Tk;
use Tk::BrowseEntry;
my $top = new MainWindow( -title => "BrowseEntry 2");
main( $top );
$top->geometry("90x90");
MainLoop();
sub main {
my( $top ) = @_;
my @countries = qw( America Belize Canada Denmark Egypt Fruitopia );
my $f = $top->Frame(-bg => "blue")->pack( qw/-side left / );
my $oh = $f->BrowseEntry( -bg => "green",
-choices => \@countries)->pack;
my $be = $f->BrowseEntry( -state => "readonly", bg => "green",
-choices => \@countries,
)->pack;
}
1
2
3
4
5
6
7
8
...,
($Tk::VERSION >= 804
? (-disabledbackground => "green",
-disabledforeground => "black",
)
: ()
),
...
1
2
3
4
5
6
7
8
my $be = $f->BrowseEntry( -state => "readonly", bg => "green",
-choices => \@countries,
($Tk::VERSION >= 804 ? (-disabledbackground => "green",
-disabledforeground => "black",
)
: ()
),
)->pack;
8 Einträge, 1 Seite |