[comp.windows.x] stacking order with Xt

clyne@redcloud.ucar.edu (John Clyne) (10/10/89)

I have an application that contains a control panel, which among other 
things, brings up a graphics editor as a popup when the "edit" button is 
selected. After the editor is invoked I would like any additional "edit" button 
selections to change the stacking order so that the editor is on top.
If I try to use XtMakeGeometryRequest I get the message "X Toolkit Error: 
XtMakeGeometryRequest - NULL parent.  Use SetValues instead" First of all,
why do I get this message? Second, what else can I do since there does not
seem to be resource specification for stacking order that can be modified
with XtSetValues.




thanks - jc

	John Clyne 	(clyne@ncar.ucar.edu)
	c/o
	National Center for Atmospheric Research
	P.O. Box 3000
	Boulder, Colorado 80307
	(303) 497-1236

	
		%%% Its a small world. But I wouldn't want to paint it %%%
						S. Wright
		%%%						       %%%

swick@ATHENA.MIT.EDU (Ralph R. Swick) (10/12/89)

>  I would like any additional "edit" button 
> selections to change the stacking order so that the editor is on top.
> If I try to use XtMakeGeometryRequest I get the message "X Toolkit Error: 
> XtMakeGeometryRequest - NULL parent.  Use SetValues instead"

It sounds like you are calling XtMakeGeometryRequest from the
application.  If so, this is a no-no; XtMakeGeometryRequest is
intended to be called by the widget whose geometry is being
changed, not by a third party.  You get this message presumably
because you specified a ShellWidget in the call and, in R3,
Shells have no parent to field the request.  If you're realy
only changing stacking order then you'll be able to get away
with this in R4, but it's still not recommended practice.

Xt does not have any special support for third-party stacking
changes; in this case, you should simply make direct Xlib
calls (e.g. to XRaiseWindow) on the Shell window.