Thanks chris www.perl-resume.com
----- Original Message ----- From: Glenn Linderman <[EMAIL PROTECTED]> To: <perl-win32-gui-users@lists.sourceforge.net> Sent: Monday, March 12, 2001 11:46 PM Subject: Re: [perl-win32-gui-users] icons for every occasion I have some answers, but I don't know for sure what your questions are. It would help if you use well-defined terminology. Someone may be more knowledgable about Windows than me, and provide better answers, but here's what I know. christopher sagayam wrote: > Is it possible to create different icons for different occasions for the > same win32 gui script.. Yes. But you have to detect the occasions yourself. > if so please give me sample code Don't have sample code. > The occasions are > > 1. In the desktop ( as shortcut) Windows properties allows you to choose any icon for any shortcut, whether it is related to the launch program or not. Create the shortcut, pop up the properties window, shortcut tab, "Change icon". From the docs it looks like the Win32::Shortcut package could also be used to achieve that same end. > 2. When it is minimized on the bottom bar Whatever the "bottom bar" is? I assume you mean the Windows task bar (although you use that term later, to maybe mean something else?) This is the same icon as is used for the window itself, when the window is open. The task entry is visible in the task bar when the window is open, as well as when it is minimized. You can change the icons when you get a "_Minimize" event if you want, and change it again on "_Maximize" or "_Resize", or "_Activate" events, which may achieve your goals, but would not give a consistent icon in the task bar for the duration of the program, as is typical for windows programs. > 3 when the window is open Just call $my_window -> SetIcon with appropriate parameters > 4 When the window is made a small icon on the Task bar Again, this isn't clear. Perhaps you mean in the "system tray"? In which case you would use the Win32::GUI::NotifyIcon features. > 5 When the script file is seen under windows explorer file listing The icon here is derived from the program that is used to "open" the script file by default. You may have to make an extra copy of perl and change its default icon to achieve this one. You'd also have to rename your script files for which you want a "different than the perl icon" icon, to have a unique extension, to which you define the association to the extra copy of perl. > if I have 5 different icon images how to insert them into the code > apprpriately ? > > chris > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users -- Glenn ===== Even if you're on the right track, you'll get run over if you just sit there. -- Will Rogers _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users