home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!mcsun!ub4b!reks.uia.ac.be!news
- From: teugels@kiwi.uia.ac.be (Tom Teugels)
- Subject: Caption Widget behaviour
- Message-ID: <1992Dec24.120046.10626@reks.uia.ac.be>
- Sender: news@reks.uia.ac.be (USENET News System)
- Reply-To: teugels@kiwi.uia.ac.be
- Organization: University of Antwerp
- Date: Thu, 24 Dec 1992 12:00:46 GMT
- Lines: 30
-
- Hi,
-
- Is there anyone who has noticed a strange behaviour of the OLIT (<3.0) Caption
- widget when trying to attach another child widget to it? What I do is the
- following:
-
- XtDestroyWidget(<oldCaptionChild>);
- <newCaptionChild> = XtCreateWidget(...,<caption>,...);
- XtManageChild(<newCaptionChild>);
-
- This (pseudo) code seems correct to me, and works for all composite widgets
- except the caption widget. By experimenting a bit I found out that the following
- sequence does work (strange enough):
-
- <newCaptionChild> = XtCreateWidget(...,<caption>,...);
- XtDestroyWidget(<oldCaptionChild>);
- XtManageChild(<newCaptionChild>);
-
- This is strange because captions are not allowed to have more than one child.
- After the XtCreateWidget-call there are actually two children
- attached to the caption, and yet this works correctly. A Feature?
-
- Tom Teugels
- University of Antwerp
- Belgium
-
- teugels@kiwi.uia.ac.be
-
-
-
-