Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!polyslo!cosmos.acs.calpoly.edu!mike From: mike@cosmos.acs.calpoly.edu (Mike L Patnode) Newsgroups: comp.windows.x Subject: Re: Reparenting Widgets Message-ID: <12300@polyslo.CalPoly.EDU> Date: 5 Jul 89 20:13:37 GMT References: <12359@bloom-beacon.MIT.EDU> <8907051728.AA19783@expo.lcs.mit.edu> Sender: news@polyslo.CalPoly.EDU Reply-To: mike@cosmos.acs.calpoly.edu.UUCP (Mike L Patnode) Organization: Cal Poly Academic Computing Services, San Luis Obispo Lines: 31 kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) writes: > The pains of reparenting widgets deleted.... > >> Is anyone thinking about adding an XtReparentWidget call in the next release >> of X toolkit? > >Nope, for the reasons stated above. O.K. then, how about a XtCopyWidget() ? This would simply the operation greatly for those who are trying to do it, as well as reparenting. IE: Widget XtReparentWidget(widget, new_parent, x, y) Widget widget, new_parent; Position x, y; { Widget newwidget; newwidget=XtCopyWidget(widget, new_parent, x, y); XtDestroyWidget(widget); return newwidget; } Mike "Dodger" Patnode | mike@cosmos.ACS.CalPoly.EDU Yitbos Innovations Inc. | or 244 California Blvd | mpatnode@polyslo.CalPoly.EDU San Luis Obispo, Ca 92630 | (805) 541-2048 / 543-9818 / 756-2516