Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Icon on window

Status
Not open for further replies.

tchatzi

Technical User
Dec 15, 2004
744
GR
I was wondering, when you make a window with Win32-Gui, and you want to put an icon to the left of the title of the window, how can you do it?

I tried to make an '.exe' file for my '.pl' file with PDK PerlApp.
It has an option to put icon files, so i did. I put two files one 32x32 and one 16x16 with 16 colors. But only the icon of the application works(you know the ones you see when you open a folder), i cannot see any icon on the window.

I also try with the perl.exe file which contains many icons in it but nothing happened either.

Is there a method to put your own icon next to the title of a window?

Any suggestion will be appreciated.
Thanks for your time.
 
you can use the following method

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

$MainWindow->ChangeSmallIcon($icon);

which is not specified in Win32-Gui but it works, at least to me.
 
thanks it worked for me too.
i appreciate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top