Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hpcvlx!ben From: ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) Newsgroups: comp.windows.x Subject: Re: Reparenting widgets Message-ID: <100920253@hpcvlx.cv.hp.com> Date: 22 Oct 90 17:10:45 GMT References: <9010191812.AA11198@saqqara.cis.ohio-state.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 29 For now (could break anytime), the general solution requires at least the following, in no particular order: - Remove the child from the previous parent's child list; the delete child method ought to work. - Insert the child in the new parent; the insert method should do it. - Make sure that the child's parent fiels points to the correct parent. - Handle the constraint records. This last is perhaps the most difficult. You should run the constraint destroy processing, then the constraint initialize processing. Doing all of these things in a correct sequence constitutes the general work-around. Are you sure that you want to do this? ----------------------------------------------------------------------- Benjamin Ellsworth | ben@cv.hp.com | INTERNET Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP 1000 N.E. Circle | (USA) (503) 750-4980 | FAX Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------