Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Window Icon

4 views
Skip to first unread message

haibinh nguyen

unread,
Jan 12, 2000, 3:00:00 AM1/12/00
to
Hi. How do I add an icon to the MainWindows;
Thanks

did...@absolog.com

unread,
Jan 13, 2000, 3:00:00 AM1/13/00
to
In article <85jamr$kmp$1...@bgtnsc02.worldnet.att.net>,
HB.N...@worldnet.att.net says...

> Hi. How do I add an icon to the MainWindows;
> Thanks

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.

Jonathan Davies

unread,
Jan 13, 2000, 3:00:00 AM1/13/00
to
Hi everyone,

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
=========================================


Stephen O. Lidie

unread,
Jan 13, 2000, 3:00:00 AM1/13/00
to
Jonathan Davies <jonatha...@philips.com> wrote:
> Hi everyone,

> 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 ...

MICHAEL ZITZMANN

unread,
Jan 14, 2000, 3:00:00 AM1/14/00
to


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

0 new messages