drblove27 has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

So as I am trying to finish off, or rather put the finishing touches, on some code that I am working with, I find myself in the "try to make this look pretty stage". I have written a windows program with full GUI in perl using the Win32::GUI package system, I know, not Tk but was trying something new.

I would like to add my own icon on the main GUI upper left hand part of the bar instead of the default Perl camel. I have hunted around the documentation (not quite finished) and did not see anything. Anyone have any suggestions?

I am using PerlApp to compile the code that I have written into a Windows executable and use that code to make an icon for the executable. Thanks in advance!

Replies are listed 'Best First'.
Re: Win32::Gui:Windows icon question
by bellaire (Hermit) on Nov 20, 2009 at 18:27 UTC
    As indicated in this thread:
    my $icon = new Win32::GUI::Icon('icon.ico'); $main->SetIcon($icon);
      You are honestly my hero. Thank you so much!
        A related point, in PerlApp there is an option when you create the .exe so that you can specify your icon for Windows to use when it is displaying yourprogram.exe in Windows Explorer etc. I don't remember what the option is called and I'm on the road now so I can't look at a PerlApp project, but its in there and is a nice touch. You can use same icon as your runtime windows.