Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!COD.NOSC.MIL!ray
From: ray@COD.NOSC.MIL (William J. Ray)
Newsgroups: comp.windows.x
Subject: Reparenting widgets.
Message-ID: <8811291715.AA23281@cod.nosc.mil>
Date: 29 Nov 88 17:15:12 GMT
Sender: daemon@bloom-beacon.MIT.EDU
Organization: The Internet
Lines: 33


     I have a question concerning widgets.  I am running X.V11R3 on
a Sun 4/260 with Sun OS 3.2, but am using Release 2 of the toolkit
to take advantage of the HP widgets.

     I was wondering how to reparent a widget.  I have two processes
running, call them a and b.  both a and b are using widgets and both
call XtInitialize.  Process b maintains a complex graphics image
in a widget which I have written.  Process a sends messages over
a socket to b to tell it how to manipulate the image.  Both come
up in their own window, and each has its own title bar (under twm).

    What I would like to do is reparent the toplevel widget in b,
so that its parent is now a widget in process a.  This way, both
widget sets will be under the same window, and be managed as a
single window by the wm.  I know that this is possible with
windows. (Apparently this is how twm places title bars and
such)  But is this possible with widgets, and if so how would
I go about doing such a thing.

     One more question that is unrelated.  How do you set the
initial position of the scroll bar in the HP or Athena widgets.
I am using the HP scrollbar widget to scroll an image.   I would
like the scroll bar to come up with the slider in the middle
instead of at the left side.


Thanks in advance,

I am not on the expert mailing list, so please send any repsponses
to me at:

    ray@nosc.mil