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