home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / 15351 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.5 KB

  1. Path: sparky!uunet!mcsun!uknet!gdt!aber!cfc
  2. From: cfc@aber.ac.uk (Clive Stuart Crutchfield)
  3. Newsgroups: comp.windows.x
  4. Subject: popup widgets
  5. Message-ID: <1992Aug18.122240.2550@aber.ac.uk>
  6. Date: 18 Aug 92 12:22:40 GMT
  7. Sender: cfc@aber.ac.uk (Clive Stuart Crutchfield)
  8. Organization: University of Wales, Aberystwyth
  9. Lines: 28
  10.  
  11.  
  12.  I have created a large X application for creating fonts in METAFONT.
  13. This is done through a mixture of form-type user input and straight 
  14. button presses. The tool brings up a succession of windows which are
  15. used and then destroyed when finished with.
  16.  
  17. All of this was working fine until I started to reach the final stages
  18. of incorporating the underlying c code with this.
  19.  
  20. I create the windows as toplevelwidgetclass to allow the window manager
  21. to control them. Resizing on all of these works perfectly, done by 
  22. setting the args for each widget individualy. The widgets are killed using
  23. XtDestroy, and realized using XtPopup(widget,   ).
  24.  
  25. After some of the widgets have benn created and killed when they are brought up again
  26. the widget creation fails randomly.
  27.  
  28. Should I realise them with a different method?
  29. Do I need to use XtMalloc for the toplevelshellwidget in each case and then use 
  30. XtFree in conjunction with XtDestroy?
  31.  
  32. Since I have about 60-70 individual widgets might I be asking too much of X?
  33. (I dont't notice any slowing of the system as I run more and more windows).
  34.  
  35. Any suggestions would be greatly welcome.
  36. Thanks in advance.
  37.  
  38. Clive Crutchfield.
  39.