Thread Win32::GUI::Menu updaten!? (7 answers)
Opened by Froschpopo at 2005-04-25 04:57

zipster
 2005-04-26 15:57
#43722 #43722
User since
2004-09-06
458 Artikel
BenutzerIn
[default_avatar]
Wie soll das den so funktionieren??

*kopfschüttel*

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
 my $systray_menu = new Win32::GUI::Menu(
"SystrayMenu Functions" => "SystrayMenu",
">-" => "",
"> Mein Status" => "",
">> Online" => 'set_status(1)',
">> Beschäftigt" => 'set_status_Click(2)',
">> Bin gleich zurück" => 'set_status(3)',
">> Abwesend" => 'set_status(4)',
">> Mittagspause" => 'set_status(5)',
"> Abmelden" => { -name => 'open_main', -state => 1 },
">-" => "",
"> Öffnen" => { -name => 'open_main', -bold=>1 },
"> Beenden" => 'quit'
);
sub systray_RightClick {
my($x, $y) = Win32::GUI::GetCursorPos();
$config{Win32Window}->TrackPopupMenu($systray_menu->{SystrayMenu}, $x-50, $y);

}
sub set_status(1)_Click
{
$systray_menu->{quit}->Change(-text => "huhu");
}



So müßte es funktionieren\n\n

<!--EDIT|zipster|1114516765-->

View full thread Win32::GUI::Menu updaten!?