|< 1 2 >| | 12 Einträge, 2 Seiten |
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
sub RefreshBuddyList {
my $nickname;
my $frame = $config{MainWindow}->Frame(
-relief => 'sunken',
-borderwidth => 8
);
foreach(@_) {
my $m = $config{MainWindow}->Menu(-tearoff => 0);
my $user = (split(/\:/, $_))[0];
$m->add(
'command',
-label => "Privat-Chat starten",
-background=> 'white',
-command => sub { StartChat($user) }
);
$nickname = $config{MainWindow}->Label(
-text => $user,
-background => 'white',
-font => $config{Font}
);
$nickname->bind('<Button-3>' => sub { $m->Popup(-popover => 'cursor') });
$nickname->pack(-side => 'left');
}
$frame->pack(-side => 'right');
}
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
47
48
49
50
51
52
53
sub RefreshBuddyList {
my $image="logo.gif";
my $nickname;
my $singleLine = 30;
#$nickname = $config{MainWindow}->Frame(-relief => 'sunken', -borderwidth => 5);
my $label1 = $config{MainWindow}->Label(-text=>'3 neue Flirtmails', -font => $config{Boldfont}, -background => 'white');
foreach(@_) {
my $m = $config{MainWindow}->Menu(-tearoff => 0);
my $user = (split(/\:/, $_))[0];
$m->add(
'command',
-label => "Privat-Chat starten",
-background=> 'white',
-command => sub { StartChat($user) }
);
$m->add(
'command',
-label => "Profil anzeigen",
-background=> 'white',
-command => sub { GotoUrl("http://.../cgi-bin/goto.pl?username=$user") }
);
$m->add('separator');
$m->add(
'command',
-label => "Benutzer blockieren",
-background=> 'white',
-command => sub { IgnoreUser($user) }
);
$m->add(
'command',
-label => "Kontakt löschen",
-background=> 'white',
-command => sub { RemoveUser($user) }
);
my $photo = $config{MainWindow}->Photo();
$photo->configure("-file" => $image);
my $label = $config{MainWindow}->Label(-image => $photo, -background => 'white');
$nickname = $config{MainWindow}->Label(
-text => $user." (Online)",
-background => 'white',
-font => $config{Font}
);
$nickname->bind('<Button-3>' => sub { $m->Popup(-popover => 'cursor') });
$nickname->bind('<Double-1>' => sub { StartChat($user) });
$label->place(-x=>2, -y => $singleLine-2);
$label1->place(-x=>5, -y => 4);
$nickname -> place(-x=>23, -y => $singleLine);
$singleLine = $singleLine + 18;
}
}
|< 1 2 >| | 12 Einträge, 2 Seiten |