[comp.windows.x] Intrinsics or twm problem

dagorn@cicb.fr (Francois Dagorn - CICB Rennes 99.36.20.00) (01/24/91)

I don't know if the problem is from Intrinsics , twm or myself but the
following code doesn't run as expected :

 pop  = XtVaCreatePopupShell("pop",wmShellWidgetClass,toplevel,XtNx,x-width,
                                   XtNy,y-height,
                                   XtNwidth,data.addresswidth,
                                   XtNheight,data.addressheight,
                                   XtNtitle,data.convtitle,
                                   XtNwaitForWm,False,
                                   NULL);
the pop widget doesn't appear in the proper location but it comes with the doted
form as if no location was provided.

When changing wmShellWidgetClass into transientShellWidgetClass the location is
correct (but i need the twm title bar).

Thanks for help.

swick@athena.mit.EDU (Ralph Swick) (01/25/91)

    pop  = XtVaCreatePopupShell("pop",wmShellWidgetClass,toplevel,XtNx,x-width,
                                   XtNy,y-height,
    ...

Try constructing a geometry string and specifying XtNgeometry rather
than the separate resources.  (The Shell widget doesn't export the
flags in the window manager hints directly, so you have to take
an indirect approach).

asente@adobe.COM (01/25/91)

>I don't know if the problem is from Intrinsics , twm or myself but the
>following code doesn't run as expected :
>
> pop  = XtVaCreatePopupShell("pop",wmShellWidgetClass,toplevel,XtNx,x-width,
...

>When changing wmShellWidgetClass into transientShellWidgetClass the location is
>correct (but i need the twm title bar).

You should not be creating a wmShell widget; the wmShell class is internal to
the Intrinsics.  If you want a title bar, create a topLevelShell.  If you
want to bypass twm's default positioning rules for windows that have title
bars, you have to negotiate that with twm.

	-paul asente
		asente@adobe.com	...decwrl!adobe!asente