nanogui: Thread: Transparent whit nanoX


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Transparent whit nanoX
From: "Marco Rossi" ####@####.####
Date: 3 May 2006 16:31:40 +0100
Message-Id: <007701c66ec6$edb6d4c0$0c08a8c0@marco>

Hello,
I have this kind of problem, working with the trasparent setting.
I make 2 overlapping windows , I can see the window underneath if I draw an
image (gif type) with transparent in the upper wiondow and I set the window
background to trasparent.
On the other hand, if I load the same image in the upper window as
background, I can't see the underneath window, since I need to set the
window background not to transparent to see the image.

Do you any idea about it?

Best Regards,
Marco.

L'informativa ai sensi del D.Lgs 196/2003 (Codice della Privacy) sul sito
www.corghi.com
Subject: Re: [nanogui] Transparent whit nanoX
From: "Greg Haerr" ####@####.####
Date: 4 May 2006 05:04:46 +0100
Message-Id: <05e901c66f2f$22f586a0$6401a8c0@winXP>

: I have this kind of problem, working with the trasparent setting.
: I make 2 overlapping windows , I can see the window underneath if I draw
an
: image (gif type) with transparent in the upper wiondow and I set the
window
: background to trasparent.
: On the other hand, if I load the same image in the upper window as
: background, I can't see the underneath window, since I need to set the
: window background not to transparent to see the image.

Marco -

Nano-X doesn't actually support transparent windows, so you
have to be very careful to get the effect you're looking for.
If a window is drawn that has the NOERASEBKGND
bit set, then, if the window is on top, the previous screen
contents will show thru.  If its not on top, then the topmost
window can always draw over it.  After the window border
is drawn, then you can draw a transparent image, with
the same type results.  But unless you know FOR SURE
that the lower windows aren't going to redraw themselves
with EXPOSE events, then this entire scheme won't work.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.