I figured out how to get the image when referencing an actual '.ico' file, 
just specify the path of the file in new Win32::GUI::Icon.  But how do you 
get it from a dll or exe file?

Joe
 


Joseph Vieira 
CIO IT Support 
FUJITSU CONSULTING 
Phone:    (732) 549-4100 ext (8657) 
Email:  [EMAIL PROTECTED]




"Plum, Jason" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
12/29/2005 04:29 PM

To
<perl-win32-gui-users@lists.sourceforge.net>
cc

Subject
RE: [perl-win32-gui-users] Button bitmap and icons






 
Give me a bit here and I’ll whip up a full demo for you, I’ve got a 
program at home that’s running with like, 50 icons.
 
Jason P

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]
Sent: Thursday, December 29, 2005 4:22 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] Button bitmap and icons
 

Jason, 

I got the same result 

Joe 



"Plum, Jason" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 
12/29/2005 03:34 PM 


To
<perl-win32-gui-users@lists.sourceforge.net> 
cc
 
Subject
RE: [perl-win32-gui-users] Button bitmap and icons
 


 
 




  
My $ico = new Win32::GUI::Icon( [EMAIL PROTECTED]); 
then in the button, -icon => $ico 
  
Jason P 
  
  
 


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]
Sent: Thursday, December 29, 2005 3:05 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Button bitmap and icons 
  

Hello, 

I'm a little confused about how to add a bitmap to a button or create one 
as an icon.  I want to create a button with a picture of a printer on it, 
like you see in a word processing program.  Also a button with internet 
explorer icon on it, or any other program's icon.  I can't find an example 
on the web site on how to do this. 

I tried this out but the button was blank, you couldn't see the word 
"TEST".  So I must have done something to block the text, but the image 
did not show up either. 

$MainWin->AddButton( 
     -name   => "Button1", 
     -text   => "TEST", 
     -bitmap => 1, 
     -picture => 'bliss.bmp', 
     -left   => 350, 
     -top    => 10, 
);   


Windows XP SP2, 5.8.7, GUI 1.02 

Thanks, 
Joe 

Reply via email to