What you have there is correct - but how are you using it?
When I use an icon for a window (system) icon, it works fine, but I have been unable to make one work on a button (but a Bitmap works in that case).
For a system icon the normal size restrictions apply: 16x16 for as it appears in the title bar and a start bar button; add a 32x32 image into the same file if you make a free-standing exe so Windows can display a large icon for it as well.
# -- set window icon ------------------
my $I = new Win32::GUI::Icon("hsh.ico"); #hsh.ico contains both 16x16 and 32x32 images
$W->SetIcon($I); #W is the previously defined Window
At 21:25 2001-05-10 -0700, Jeremy Aiyadurai wrote:
>thankyou for your help so far
>is this Win32::GUI::Icon functional, or is there something wrong with my file.
HomeSite Help - http://hshelp.com/ - Extensions, Tips and Tools