Thanks Jeremy. Nice, clean and mostly straight-through :)

See Brian, I told you someone more experienced with the bitmap module
would be able to provide a simple-ish way to do it.

We're here to help :)

Jason P.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jeremy White
Sent: Thursday, February 23, 2006 3:06 AM
To: [EMAIL PROTECTED]; perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] A slightly OT question, how to
create an icon on the fly


>I'd like to be able to have an icon (displayed in the system tray) that
is
>created "On the fly".  Something like the W2K/XP task manager icon, but

>with
>text indicating the percentage overlaid.
>
>I know that I could do this by creating 100 discrete icons, but what a
pain
>this would be. (Actually what I'd ultimately like to do would probably
>require 1000 icons!)
>
>Is there a module to create simple graphics?  I could create the icon,
and
>use  BitmapInline to import/display it.
>
>Can this be done, or am I crazy.

Hi,

This is the way I would do it. Create a off screen bitmap, paint your 
'source' icon onto the bitmap, add the text that you need to the bitmap.

Now, create a off screen tool bar, add the bitmap to the toolbar, then
use 
the GetIcon method from the toolbar to create an icon that you can use
in 
the system tray.

You wont need any external modules.

Cheers,

jez.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/


Reply via email to