Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!adobe!asente From: asente@adobe.com (Paul Asente) Newsgroups: comp.windows.x.motif Subject: Re: SLOWWWWWWW Popups Message-ID: <7926@adobe.UUCP> Date: 2 Nov 90 20:55:25 GMT References: <1990Oct25.142436.9581@litwin.com> <13270002@hpsciz.HP.COM> <1220@esacs.UUCP> Sender: news@adobe.COM Organization: Adobe Systems Inc. Lines: 22 In article <1220@esacs.UUCP> nick@esacs.UUCP (Nick Tsivranidis) writes: > 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.... In this case, what is wrong is your understanding of how popups work in Xt. The parent of a popup widget is not like the parent of a regular widget; the popup child's window is not a child of the parent's window. Any widget can cause any popup widget to appear; it doesn't have to be the parent. You can move or resize a popup when you pop it up by using the XtNpopupCallback resource. -paul asente asente@adobe.com ...decwrl!adobe!asente