Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!inria!i2unix!esacs!nick From: nick@esacs.UUCP (Nick Tsivranidis) Newsgroups: comp.windows.x.motif Subject: Re: SLOWWWWWWW Popups Summary: Yes, but .... Message-ID: <1220@esacs.UUCP> Date: 31 Oct 90 16:01:48 GMT References: <1990Oct25.142436.9581@litwin.com> <13270002@hpsciz.HP.COM> Organization: ESA C. & S. , Rimini,ITALY Lines: 26 In article <13270002@hpsciz.HP.COM>, masa@hpsciz.HP.COM (Masayoshi Habu) writes: > Creating a dialog with lots of children is a memory-intensive operation. > There are two suggestions for slow dialog creation. One is to avoid > creating dialogs as much as possible. This means that whenever it is > possible to reuse a dialog, do it. You probably can create a dialog > when your program starts up, and use just map/unmap calls. The other Yes, but the problem is that dialogs are (usually) modal boxes and the 'parent' widget is very important (if you want the dialog centered on the window that produced it). Since reparenting a widget is not a smart idea, one is stuck with the Create/Destroy mechanism (which as you point out doesn't work right). This is yet another indication that 'something' was not well designed in this X11/Xt/Xm world we live in. But, such is life.... - nick - -- Nick Tsivranidis @ ESA Software srl - ITALY uunet: ....mcsun!i2unix!esacs!nick voice: (0039) 541 741113 fax: (0039) 541 742153