Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!husc6!genrad!mag From: mag@genrad.com (Michael A. Gray) Newsgroups: comp.windows.x Subject: Adding widgets to realized parents Message-ID: <17668@genrad.UUCP> Date: 24 Feb 89 12:01:14 GMT Sender: news@genrad.UUCP Reply-To: mag@genrad.UUCP (Michael A. Gray) Organization: GenRad, Inc., Concord, Mass. Lines: 30 Background: X11R2, Xt intrinsics, Hp widgets. Problem: When I add another widget (e.g a XwpushbuttonWidgetClass) to a already realized parent using XtCreateWidget the change in geometry needed does not bubble up to the top level shell. the widget tree has the top level shell, as returned by XtInitialize. Inside that is a bulletinboard widget. The bboard has 3 buttons. When I add the fourth button and then call XtManageChildren the bboard is resized correctly, but not the toplevel shell. After looking at the code for XtManageChildren this is because there is a check for already managed children. Because the bboard is already managed, it's size change is not noted by the toplevelshell. How do I get around this problem?? Thanks in advance, Michael Gray GenRad Inc. 300 Baker Ave. Concord, MA 01742 (508) 369-4400 x2681 - or - mag@genrad.com