Thread frame funzt nicht (11 answers)
Opened by Froschpopo at 2005-04-01 22:53

Froschpopo
 2005-04-02 04:27
#43049 #43049
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
ich hab die formatierung jetzt mit place gelöst. Allerdings bin ich damit recht unzufrieden, aber vielleicht hat das auch damit zu tun dass es für mich als CGI-Programmierer eher ungewöhnlich ist nach XY anzuordnen.
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
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;

}
}
:D\n\n

<!--EDIT|Froschpopo|1167768534-->

View full thread frame funzt nicht