in reply to Re: Can't change icon with win32 module
in thread Can't change icon with win32 module
Won't seem to go online for me for some reason,
but I just wanted it to use my icons anyway,
so after some tweaking it worked gr8 (thank you very very much).
In my version
It seems that Win32::GUI::Icon->new('box.ico') returns undef for some icons, or to be exact, it does the same as in the case I refer to a non-existing icon.
Some icon-format limitation ?
but I just wanted it to use my icons anyway,
so after some tweaking it worked gr8 (thank you very very much).
In my version
For some reason it only works for some icons.use Win32::GUI(); use Win32::API; Win32::API->Import('kernel32','BOOL SetConsoleIcon(HWND icon)'); SetConsoleIcon( Win32::GUI::Icon->new('box.ico')->{-handle} );
It seems that Win32::GUI::Icon->new('box.ico') returns undef for some icons, or to be exact, it does the same as in the case I refer to a non-existing icon.
Some icon-format limitation ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Can't change icon with win32 module
by bulk88 (Priest) on Sep 22, 2012 at 18:23 UTC | |
by palkia (Monk) on Sep 22, 2012 at 19:21 UTC | |
by Anonymous Monk on Sep 23, 2012 at 05:47 UTC | |
by palkia (Monk) on Sep 24, 2012 at 03:53 UTC | |
by bulk88 (Priest) on Sep 23, 2012 at 03:59 UTC | |
by Anonymous Monk on Sep 23, 2012 at 05:45 UTC | |
by bulk88 (Priest) on Sep 23, 2012 at 08:59 UTC | |
|
In Section
Seekers of Perl Wisdom