Thanks everyone!!!  I knew that as usual you'd come through!

Brian Millham
This message traveled at least 44,000 miles to reach you!
Creator of the DW6000 Monitor
http://www.millham.net/dw6000
[EMAIL PROTECTED] 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Robert May
Sent: Thursday, February 23, 2006 4:10 PM
To: 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

Trying again without a .zip file attachment.

Robert May wrote:
> Here's another way.  I've had an investigation of Icons and Bitmaps on 
> my TODO list for a long time.  I've learned a lot doing this, but not 
> yet enough to start to think about how to integrate these sort of 
> features into Win32::GUI.
> 
> My approach needs Win32::API, as I'm using the CreateIconIndirect() API, 
> that's not in Win32::GUI right now, but otherwise everything needed is 
> there.
> 
> There's probably more than Brian needs here, but as I say I was 
> experimenting.  Do with it as you see fit :-)
> 
> Regards,
> Rob.
> 
> Plum, Jason wrote:
> 
>> 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/
>>
>>
>>
>> -------------------------------------------------------
>> 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_________________________________________
______ 
>>
>> 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/
>>
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0608-1, 02/23/2006
Tested on: 2/23/2006 9:40:50 PM
avast! is copyright (c) 2000-2003 ALWIL Software.
http://www.avast.com





Reply via email to