[comp.windows.x] Transparent background windows?

lee@sed170.HAC.COM (John Lee ) (06/22/89)

Can a window be defined such that sibling windows that are obscured will
show through the background?

"Why?", you ask.

I have an application that has various objects (ellipses, arrows, and various
other non-rectangular figures) and I would like to assign each object to a
window.  This would allow me to use the server's smarts to figure out which
objects need to be refreshed on an expose (making object manipulation and
eventual widget construction easier), rather than re-creating a window-tracking
scheme myself.  However, since objects need to partially cover each other
(e.g., arrow connected to a circle) normal windows aren't sufficient since
the rectangular backgrounds obscure parts of the other windows.

Unfortunately, background_pixmap = None and background_pixel = undefined do
nothing of the sort that I need.

Can anyone help me?

Thanks.

-------------------------------------------------------------------------------
Raining CATS and DOGS?  Join the RATS: Remote Amiga Teleconferencing System
	+--------+			John Lee
	| HUGHES |
	+--------+			ARPAnet: jhlee@hac2arpa.hac.com	
	Hughes Aircraft Company
The above opinions are those of the user and not those of this machine.

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (06/22/89)

> Can a window be defined such that sibling windows that are obscured will
> show through the background?

You'll need an extension for dealing with overlay planes or else look into
drawing on a common window and laying InputOnly windows on top of it.


> Unfortunately, background_pixmap = None and background_pixel = undefined do
> nothing of the sort that I need.

Correct.  They are intended for something else.