Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!hplabs!hpl-opus!hpccc!hp-sde!hpfcdc!hpfclp!diamant From: diamant@hpfclp.SDE.HP.COM (John Diamant) Newsgroups: comp.windows.x Subject: Re: Retrieving size of a PopupShell Message-ID: <9740056@hpfclp.SDE.HP.COM> Date: 3 Sep 88 01:46:12 GMT References: <8809011652.AA13739@esosun.uucp> Organization: HP SDE, Fort Collins, CO Lines: 18 > If I try to retrieve the width and height before the widget has > been realized, I get back width == 0 and height == 0. If I > XtRealize() the popup before the call to XtGetValues(), the > width and height are filled in correctly but my call to XtSetValues() > to set the XtNx and XtNy resources seems to have no effect. The behavior before you realize is to be expected. It doesn't know how big it will be yet. The behavior of the XtSetValues is a bug in the R2 toolkit. You shouldn't do this, but it will work. If you call XtMoveWidget directly, it bypasses the code that is not working. However, this should be removed as soon as you get the R3 toolkit, because what this does is bypass the geometry negotiation that should be occurring. John Diamant Software Development Environments Hewlett-Packard Co. ARPA Internet: diamant@hpfclp.sde.hp.com Fort Collins, CO UUCP: {hplabs,hpfcla}!hpfclp!diamant