From jan@swi.swi.psy.uva.nl Sat Dec  1 08:37:28 2001
Received: from gollem.swi.psy.uva.nl (gollem.swi.psy.uva.nl [145.18.152.30])
	by swi.psy.uva.nl (8.10.2+Sun/8.11.2) with ESMTP id fB17bSI13178;
	Sat, 1 Dec 2001 08:37:28 +0100 (MET)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) id fB17bSY06405;
	Sat, 1 Dec 2001 08:37:28 +0100
Date: Sat, 1 Dec 2001 08:37:28 +0100
Message-Id: <200112010737.fB17bSY06405@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: [SWIPL] Displaying icons with XPCE - Windows platform
To: Fabien Todescato <f.todescato@larisys.fr>,
   "'prolog@swi.psy.uva.nl'" <prolog@swi.swi.psy.uva.nl>
In-Reply-To: Fabien Todescato's message of Thu, 29 Nov 2001 16:52:45 +0100
Phone: +31 - 20 - 525 6121

> Dear XPCErs,
> 
> With XPCE 5.1.9 running under WNT4.0, I have the following problem when
> trying to load and display icons held in '.ico' files :
> 
> 00 ?- new(P,picture).
> 01
> 02 P = @789847/picture
> 03
> 04 Yes
> 05 ?- send($P,open).
> 06
> 07 Yes
> 08 ?- new(B,bitmap('X:/00222.ico')).
> 09
> 10 B = @805430/bitmap
> 11
> 12 Yes
> 13 ?- send($P,display,$B,point(48,48)).
> 14
> 15 Yes
> 16 ?- [PCE fatal: x:/00222.ico: Xopen failed on @display/display
> 17         in:     <No exception goal>
>
<snip>
> 
> Has anyone else come across that problem already, and are more satisfying
> workarounds known ?

Looks like a serious problem I'll try to fix as soon as possible.  If
you happen to have ImageMagic around (available for both Windows and Unix)
you can try "convert x.ico x.xpm" (or x.gif).  Masks are supported for
.ICO, .XPM and .GIF files.  .XPM and .GIF surely work correctly (and
are cross-plaform).

	Cheers --- Jan

