Tk::Icon - Change Icon of Tk-Windows under Win32 |
Tk::Icon - Change Icon of Tk-Windows under Win32
use Tk; use Tk::Icon;
my $mw = MainWindow->new; $mw->setIcon(-file => 'usa.ico');
MainLoop;
Tk::Icon imports the setIcon-function into the Tk::Toplevel-Package and provides to change the Icon of a Toplevel-window under Win32.
At the moment, there is no possibility to manipulate the Icon using configure/cget or to destroy it. See TODO.
I've tested it under Windos 98SE and Windows 2000 using Perl 5.6.0 and Tk 800.022 only, but it should work under all Win32-compatible operating systems because it uses documented Win32-API-Calls.
At the moment, there is only one method supplied:
When you later in the program call this method again, the previous icon will be destroyed and the new one will be loaded.
Martin Schmuker, martin@schmuker.de
Tk::Icon - Change Icon of Tk-Windows under Win32 |