If you are using Unix X, do like that:
$main->iconbitmap("this_one");
But if you are using win32, you can't unless
you use a tool like "Perl2exe" to convert your script in exe
and remove the Tk icon from the Tk.dll **before** compilation.
You can remove the icon with tool like "MicroAngelo" and set
another. They must be 16 colors, 32*32 and 16*16.
I do that usualy for win32 customers, it works well:)
Didier Ladner.
I am using UNIX, and when I try to assign a bitmap to the mainwindow's
icon, perl gives me an error:
format error in bitmap data at /.../Tk/Image.pm line 21.
I assume that this means that I am trying to use a bitmap of the wrong
variety - what format should it take?
Cheers,
Jonathan Davies.
did...@absolog.com wrote:
--
=========================================
From: Jonathan Davies
EF1-46 A500
Design Technology Centre
Philips Semiconductors Southampton
Tel: +44 (0)23 80 316354
Fax: +44 (0)23 80 312642
Email: mailto:jonatha...@philips.com
=========================================
> I am using UNIX, and when I try to assign a bitmap to the mainwindow's
> icon, perl gives me an error:
> format error in bitmap data at /.../Tk/Image.pm line 21.
> I assume that this means that I am trying to use a bitmap of the wrong
> variety - what format should it take?
X11 XBM format, not Win32 BMP format.
Or use Icon() for a color icon ...
I tried the Icon() thing, but it didn't work with KDE...(no error but no effect)
What is wrong with this code ?
$w_mw->Icon( -image => $w_mw->Pixmap(-file => "xyz.xpm"));
Michael