|< 1 2 >| | 11 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
$m->add(
'command',
-label => "Profil anzeigen",
-command => sub { GotoUrl("http://127.0.0.1/cgi-bin/goto.pl?username=$user") }
);
$m->add(
'command',
-label => "Kontakt löschen",
-command => sub { RemoveContact() }
);
1
2
3
4
5
6
7
8
9
my $datei = $menubar->cascade(-label => '~Datei',
-tearoff => 0);
# ---------------- trennlinie
$datei->command(
-label => 'Mein Status',
-background=> 'white',
-command => \&one
);
1
2
3
4
5
6
7
8
9
10
11
12
13
my $datei = $menubar->cascade(-label => '~Datei',
-tearoff => 0);
$datei->separator();
$datei->command(
-label => 'Mein Status',
-background=> 'white',
-command => \&one
);
$date->command(
# ... code ...
);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Tk;
$mw = new MainWindow;
$menu = $mw->Menu
(-menuitems =>
[
[Cascade => "~Menu", -menuitems =>
[
[Cascade => "~Cascade", -menuitems =>
[
[Button => "~Command in Cascade", -command => sub { } ],
]
]
]
]
]
);
$mw->configure(-menu => $menu);
|< 1 2 >| | 11 Einträge, 2 Seiten |