Lisp HUG Maillist Archive

image buttons

I'm getting an error (LWW) that I don't understand - if someone knows what this means, let me know:

"no colour user" for a button with an image

and alternately "<gp:xxx image ...> has no representation"

(the errors depend on how I setf the image)

(What I'm trying to accomplish: I'm trying to switch images on the fly on an image button - one image for popped out, one for pushed in (trying to circumvent Window's default behaviour. The button goes on and off the screen (on purpose), the second time it appears, I get these errors).

tia

pt

Re: image buttons

In some situations (for instance after you remove the image from screen, and
than show it again) you need a fresh image (and it's image-representation).
If you work with external-image, and call draw-image on it, you can forget
about initialization. But if you prefer to work with image (it's faster),
you can store the path, or an external-image, somewhere and create a fresh
image from it each time the image appears on screen (with load-image or
convert-external-image)

Best 

Denis


Le 9/04/09 19:28, « [NOM] » <[ADRESSE]> a écrit :

> I'm getting an error (LWW) that I don't understand - if someone knows what
> this means, let me know:
> 
> "no colour user" for a button with an image
> 
> and alternately "<gp:xxx image ...> has no representation"
> 
> (the errors depend on how I setf the image)
> 
> (What I'm trying to accomplish: I'm trying to switch images on the fly on an
> image button - one image for popped out, one for pushed in (trying to
> circumvent Window's default behaviour.  The button goes on and off the screen
> (on purpose), the second time it appears, I get these errors).
> 
> tia
> 
> pt
> 
> 


-------------------------------------------------------
Denis Pousseur
70 rue de Wansijn
1180 Bruxelles, Belgique

Tel : 32 (0)2 219 31 09
Mail :  denis.pousseur@gmail.com
-------------------------------------------------------



Updated at: 2020-12-10 08:41 UTC