[comp.windows.x] XrEditors in the Xr library.

gaur@uicsrd.csrd.uiuc.edu (08/07/87)

Hi! 
	I have a general question about the editors in the Xrlibrary.  We are running version X10.4. 
	I find that the region in which the editors (like TitleBar Editor, 
Scroll Bar Editor etc..) are drawn (inside a window) can be over written
by any bitmap manipulation (for Instance just doing an XText call in the window)
routines.
	Applications  which rely on X to truncate the output are then forced 
to not to overwrite on those regions or to redraw the editor instance . In any 
case they are forced to make such checks.
	A way to get around is to have a child window in the region where
the editor instance is drawn. So bitmap manipulation routines do not need to
make any checks to avoid corrupting  the editor instance.
	I feel the editors( at least the Title Bar and The Scroll Bar editors)
would be more usable if the editor instances could not be botched up by calls
like XText. For most of the time when a editor is drawn in a region I don't 
expect many application purposely overwriting in that region. 
	Are any later X versions going to or have addressed  this problem?
I would be thankful if somebody could give some information on this.

Thanks,
yogesh gaur

gaur%uicsrd@a.cs.uiuc.edu

swick@ATHENA.MIT.EDU (Ralph R. Swick) (08/10/87)

>> I find that the region in which the editors (like TitleBar Editor, 
>> Scroll Bar Editor etc..) are drawn (inside a window) can be over written
>> by any bitmap manipulation (for Instance just doing an XText call in
>> the window) routines.
>> ...
>> Are any later X versions going to or have addressed  this problem?

This isn't exactly an X problem, per se, but what I consider to be a
mis-feature of the particular toolkit.  I can't speak on behalf of the
folks at Hewlett-Packard, but they did tell me that the decision not to
use subwindows for each editor was one they made early in their
design process.  I think their intention was that you use Panels when
you want the window system to clip for you.

My own religion is that the majority of widgets (aka editors) always
want to have their own (sub)windows.

-Ralph

gaur@SW.CSRD.UIUC.EDU (Yogesh Gaur) (08/10/87)

Thanks a lot for clarifying the problem. I can now start to have my own
subwindows or do something else to do the clipping.
thanks,
yogesh