home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / openloo / 4911 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.3 KB  |  42 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!mcsun!ub4b!reks.uia.ac.be!news
  3. From: teugels@kiwi.uia.ac.be (Tom Teugels)
  4. Subject: Caption Widget behaviour
  5. Message-ID: <1992Dec24.120046.10626@reks.uia.ac.be>
  6. Sender: news@reks.uia.ac.be (USENET News System)
  7. Reply-To: teugels@kiwi.uia.ac.be
  8. Organization: University of Antwerp
  9. Date: Thu, 24 Dec 1992 12:00:46 GMT
  10. Lines: 30
  11.  
  12. Hi,
  13.  
  14. Is there anyone who has noticed a strange behaviour of the OLIT (<3.0) Caption
  15. widget when trying to attach another child widget to it? What I do is the 
  16. following:
  17.  
  18.         XtDestroyWidget(<oldCaptionChild>);
  19.         <newCaptionChild> = XtCreateWidget(...,<caption>,...);
  20.         XtManageChild(<newCaptionChild>);
  21.  
  22. This (pseudo) code seems correct to me, and works for all composite widgets
  23. except the caption widget. By experimenting a bit I found out that the following
  24. sequence does work (strange enough):
  25.  
  26.         <newCaptionChild> = XtCreateWidget(...,<caption>,...);
  27.         XtDestroyWidget(<oldCaptionChild>);
  28.         XtManageChild(<newCaptionChild>);
  29.  
  30. This is strange because captions are not allowed to have more than one child.
  31. After the XtCreateWidget-call there are actually two children
  32. attached to the caption, and yet this works correctly. A Feature?
  33.  
  34. Tom Teugels
  35. University of Antwerp
  36. Belgium
  37.  
  38. teugels@kiwi.uia.ac.be
  39.  
  40.  
  41.  
  42.