Peter, thanks, but what I am really needing is an icon for a Window or DialogBox.

Not needing an icon for the system tray.  I was hoping to be able to use a small bitmap file

For the icon since I do not have an icon generator.


$Icon = new Win32::GUI::Bitmap("C:\\Bibles\\bible.bmp",1);     #    1 specifies icon type



$W->SetIcon($Icon,0);              #  0 = small icon, 1 = big icon



Does not do the trick.



-----Original Message-----
From: Peter Eisengrein []
Wednesday, July 28, 2004 3:58 PM
To: 'Eric Hansen';
Subject: RE: [perl-win32-gui-users] How to change window/dialogbox icon


my $icon = new Win32::GUI::Icon("Icon.ico");


my $ni = $Window->AddNotifyIcon(
 -icon => $icon,
 -id => 1,
 -name => ni,
 -tip => "Mouseover shows this",




-----Original Message-----
From: Eric Hansen []
Wednesday, July 28, 2004 4:45 PM
Subject: [perl-win32-gui-users] How to change window/dialogbox icon

Can someone show me an example how to

Change the camel (perl) icon to a user-defined icon?

In both Windows and DialogBoxes?


I tried using Windows/DialogBox option       –icon  =>  $myicon,


Where $myicon is either defined as…


$Icon = new Win32::GUI::Icon("C:\\Bibles\\bible.bmp");


$Icon = new Win32::GUI::Bitmap("C:\\Bibles\\bible.bmp",1);


But neither work.