6 Einträge, 1 Seite |
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/perl
use strict;
use warnings 'all';
use Tk;
use Tk::Help;
# create help array
my $helparray =
[
[
{
-title => "Test1",
-header => "Ohne Scrollbar",
-text => "Test",
},
],
[
{
-title => "Test2",
-header => "Mit Scrollbar",
-text => "\n"x10 . "a"x400 . "\n"x20 . "H"x100 . "\n"x10 . "Scrollbar Test",
},
],
];
# create mainwindow
my $mw = tkinit();
# create Help button
$mw->Button(-text => "Hilfe",
-command =>
sub
{
$mw->Help(-icon => undef,
-title => "Hilfe",
-variable => $helparray,
-listbackground => "white",
-listwidth => 20,
-detailswidth => 60,
-listborderwidth => 2);
})->pack;
# start eventloop
MainLoop;
__END__
6 Einträge, 1 Seite |