hennesse has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to change the icon for a NotifyIcon? My notifyIcon starts and stops a service, and I'd like to have a slightly different icon for "running" and "stopped".
The Apache webserver's system tray icon has a green dot for running and a red dot for stopped - very nice - you can tell at a glance what state it's in.
my $ni = $main->AddNotifyIcon( -name => "NI", -icon => $niIcon, -tip => "The Electronic Brewery", );
The line below attempts to change the icon. It returns success (1), but doesn't actually do anything.
$didItWork = Win32::GUI::Change($ni->{-handle}, ( -icon => $tebIcon, +));
Thanks - Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::GUI Notify Icon
by kejohm (Hermit) on Oct 27, 2011 at 01:47 UTC | |
by hennesse (Beadle) on Oct 27, 2011 at 02:27 UTC | |
by kejohm (Hermit) on Oct 28, 2011 at 02:40 UTC | |
by hennesse (Beadle) on Oct 29, 2011 at 02:13 UTC |