RE: [perl-win32-gui-users] How to change window/dialogbox icon

2004-07-28 Thread Eric Hansen
This syntax works everyone, I discovered by trial and error. But the file I used for this example is a dot ico (.ico) file. I had hoped a dot bmp (.bmp) file could be used, but it can't. Does anyone know how to generate a dot ico (.ico) >From a dot bmp (.bmp)? $Icon = new Win32::GUI::Bit

RE: [perl-win32-gui-users] How to change window/dialogbox icon

2004-07-28 Thread Frazier, Joe Jr
I use this in several of my applications, however, most of the time, I use GUILoft to build my UI. In this case $win is my window or dialog and this should work exactly as if I built the window object manually: my $icon = new Win32::GUI::Icon('icon1.ico'); $win->ChangeIcon($icon); note that it

RE: [perl-win32-gui-users] How to change window/dialogbox icon

2004-07-28 Thread Eric Hansen
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); #

RE: [perl-win32-gui-users] How to change window/dialogbox icon

2004-07-28 Thread Peter Eisengrein
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 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 4:45 PM To: perl-win32-gui-users

[perl-win32-gui-users] How to change window/dialogbox icon

2004-07-28 Thread Eric Hansen
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");