Path: utzoo!attcan!uunet!cs.utexas.edu!usc!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Reparenting Widgets Message-ID: <8907051728.AA19783@expo.lcs.mit.edu> Date: 5 Jul 89 17:28:40 GMT References: <12359@bloom-beacon.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 25 Reparenting widgets is not supported withing the toolkit. By the time you produce all the correct semantics there is little or no advantage to reparenting a widget over destroying it and creating a new one. The major problem that you will run into when reparenting widgets is that the resource specifications for a widget are dependant upon its position in the widget hierarchy, and when you reparent a widget it is necessary to reload all of its resources and completely reinitialize it. This process is really 99% if what it takes to create a new widget. The situation becomes even more complex when the widget has children, as you must reinitialize all of the children also. Because of these problems it was not considered useful or worthwile to support reparenting widgets. > Is anyone thinking about adding an XtReparentWidget call in the next release > of X toolkit? Nope, for the reasons stated above. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213