 Re: XWindows always opaque
Organization: NASA/Goddard Space Flight Center
Lines: 57
Distribution: comp
NNTP-Posting-Host: narya.gsfc.nasa.gov
Keywords: xwindow, parent-child relation
Originator: 



In article <>,   writes:
|> Hi,
|> 
|> I wonder if it is possible for a parent window to paint over the area of
|> its childs. If it is not, then how could it be possible to implement a 
|> rubberband across multiple xwindows to select the objects that are
|> displayed one in each window?
|> 
|> Hauke
|> 

If you specify the rootwindow when you are creating your GC. You may 
use Xlib to draw over multiple windows. 
I have an application that does something similar for rubber banding.

 curs_move = XCreateFontCursor ;

 geom_vals.foreground     = blck_pixl ^ grey_dark;
 geom_vals.plane_mask     = AllPlanes;
 geom_vals.line_width     = 0;
 geom_vals.function       = GXxor;
 geom_vals.subwindow_mode = IncludeInferiors;
 evnt_mask= GCForeground | GCPlaneMask | GCLineWidth | GCFunction
                                                     | GCSubwindowMode;
 geom_gcon= XCreateGC ;



later I can move the rubber band or bands using the following logic

/**********************************************************************/
 void Tselect::move_bands           /****/
stuff deleted ...
            XDrawRectangle ; undraw old one
            sele_pntr->papax+= delt_xloc;
            sele_pntr->papay+= delt_yloc;
            sele_pntr->rootx+= delt_xloc;
            sele_pntr->rooty+= delt_yloc;
            XDrawRectangle ; draw new one
more stuff deleted
  hope this helps


-- 
Brian Dealy                |301-572-8267| It not knowing where it's at  
   |            | that's important,it's knowing
!uunet!dftsrv!kong!dealy   |            | where it's not at...  B.Dylan
-- 
Brian Dealy                |301-572-8267| It not knowing where it's at  
   |            | that's important,it's knowing
!uunet!dftsrv!kong!dealy   |            | where it's not at...  B.Dylan
