Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-beacon!shell.COM!gerday From: gerday@shell.COM Newsgroups: comp.windows.x Subject: reparenting a gadget Message-ID: <9012172352.AA01982@palm.ic.shell.com> Date: 17 Dec 90 23:52:36 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 33 I'm forwarding this for a friend, please reply to me (or post if your answer is of general interest). ------- Forwarded Message I am writing an OSF/Motif constraint widget (subclassed from XmManager) that has three separate scrollable areas (the constraints determine where to put the children). I have created three work areas under the constraint widget that will be used to display the application added children. I use the XReparentWindow function to redirect the output of the children to one of the three work areas. This works correctly for widgets. However; I have a problem with OSF/Motif gadgets. I was hoping the gadgets had a field in its instance structure that contains the window ID and I would be able to change this field. This guess was incorrect. I am trying to implement behavior similar to the X11R3 Athena viewport widget (the children of the viewport widget are window reparented to the clip window). How does the X11R4 Athena viewport widget handle window reparenting gadgets? I do not want to reparent the widget/gadget instance tree. Does anyone have any suggestions on how I can reparent the window ID of a gadget? ------- End of Forwarded Message Jan Gerday << C'etait chouette... on a bien rigole! >> gerday@shell.com - Petit Nicolas ..!{sun,psuvax1,bcm,rice,decwrl,cs.utexas.edu}!shell!gerday Consultant to: Shell Oil Company, IC-6G05 P.O. Box 20329, Houston, TX 77225-0320 (Tel: 713.795.3075)