Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!ukc!harrier.ukc.ac.uk!rlh2 From: rlh2@ukc.ac.uk (Richard Hesketh) Newsgroups: comp.windows.x.motif Subject: Re: a transparent composite widget Message-ID: <5141@harrier.ukc.ac.uk> Date: 20 Jul 90 09:53:16 GMT References: <1520@seti.inria.fr> <9007191732.AA14355@hpcvxben.HP.COM> Reply-To: rlh2@ukc.ac.uk (Richard Hesketh) Distribution: inet Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 27 Summary: Expires: Sender: Followup-To: In article <9007191732.AA14355@hpcvxben.HP.COM> ben@HPCVXBEN.CV.HP.COM (Benjamin Ellsworth) writes: > >> A Transparent Composite Widget Class >I suppose that just about anything is possible, but what you're asking >for would be very, very hard to do. Why is it very hard? It you make the backgroundPixmap of the bulletin board "None" then you should get a transparent composite widget? However, you will have to unmap and map it everytime you get an expose event (ignoring the expose event that this unmap/map generates) or if the overrlapped widgets are changed. Is this what you mean by hard? I have used this technique to display greyed out command widgets (sensitive == FALSE) and overlay them with a transparent window that still accepts events, this proved extremely easy to implement. I have someone who wants to draw shapes in separate windows (for clipping and ease of manipulation) and overlay them, he could do this using a display postscript or shape extension .. but who wants to be tied to a particular server??? Are not windows without backgrounds available on all servers? Richard Hesketh : @nsfnet-relay.ac.uk:rlh2@ukc.ac.uk : rlh2@ukc.ac.uk ..!mcsun!ukc!rlh2 --- Computing Lab., University of Kent at Canterbury, Canterbury, Kent, CT2 7NF, United Kingdom. Tel: +44 227 764000 ext 7620/3682