nanogui: Transparent whit nanoX


Previous by date: 4 May 2006 05:04:46 +0100 Re: GrMapWindow vs. GrRaiseWindow, Greg Haerr
Next by date: 4 May 2006 05:04:46 +0100 videos with microwindows, ofi
Previous in thread: 4 May 2006 05:04:46 +0100 Transparent whit nanoX, Marco Rossi
Next in thread:

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


Previous by date: 4 May 2006 05:04:46 +0100 Re: GrMapWindow vs. GrRaiseWindow, Greg Haerr
Next by date: 4 May 2006 05:04:46 +0100 videos with microwindows, ofi
Previous in thread: 4 May 2006 05:04:46 +0100 Transparent whit nanoX, Marco Rossi
Next in thread:


Powered by ezmlm-browse 0.20.