[comp.windows.x] Problem moving objects within a window

smikes@cbnewsi.ATT.COM (steven.mikes) (05/25/89)

Hello again!

I am having a minor problem that someone out there must surely
have dealt with at one time or another.  According to our AT&T
USENET usage guidelines I must be careful about what I post and
exactly how I say it, so here goes.

I open a top level window; in it I open several (as many as are
necessary) subwindows that I refer to as objects.  These objects
are moveable within their parent window.  Optionally, I am able to
draw connecting lines between the objects.  When I do, I calculate 
the X/Y coordinates required for XDrawLine as the center of the 
source and target objects of the connection.

Up to this point, everything works fine.  When I move any of the
objects, the connecting line is also redrawn to the new destination
X/Y coordinates of the moved object.  Each object on screen also has
a text label centered underneath it.  It is likely that the connecting
lines to such objects partially obscures the text label.  When I move
an object with a connecting line that partially obscures the text label,
the line is redrawn correctly, but there are still leftover bits from the
connecting line in the text label.

The question is, can anyone give some advice on what I am doing wrong
or what I am not doing that I should be doing.  Either an answer or a
pointer would be appreciated.  Please send any replies to my email address
if possible; if not, I follow this newsgroup regularly.

Thanks in advance.

AT&T: I don't think I revealed anything proprietary.

Steve
{...}hound!smikes

I represent only myself and no one else.