[comp.windows.x] Querying the window mgr for transientShell resources

staatsvr@asd.wpafb.af.mil ( Vern Staats) (11/29/89)

  Hi-Ho.  Once again I've found an opportunity to publicly display
my ignorance (i.e. I could use some help).

  I am using a transientShell for a legend which the user can drag
around on an x-y plot.  The problem is in determining a minimum width
to ask for, such that the window mgr (dxwm) has room to display the
window title "Legend" in addition to the iconify, lower, and resize
widgets.  It would help if I could at least get the font of the title.

  The DEC Toolkit Intrinsics manual claims that I can get the info I
need from the non_title_width and title_font resources of vendorShell.
These fields appear not to be available, no doubt because I replaced
the DECified libraries with the Athena versions.

  Is there a general way to get information about resources controlled
by the window manager that doesn't tie the application to a specific vendor?
Or, failing that, is there a common subset of resources of vendorShell
supported by most vendors?

Thanks in Advance

----                                                                       ///
INET:  staatsvr@asd.wpafb.af.mil      Vern Staats  (513) 255-2714      \\\///
UUCP:  -Maybe- nap1!asd!staatsvr       ASD/SCED   WPAFB OH 45433        \XX/
Boolean orthogonal(char *my_opinions, char *employer_opinions)  {return(TRUE);}

asente@decwrl.dec.com (Paul Asente) (11/29/89)

In article <297@nap1.cds.wpafb.af.mil> staatsvr@asd.wpafb.af.mil ( Vern Staats) writes:
>  Hi-Ho.  Once again I've found an opportunity to publicly display
>my ignorance (i.e. I could use some help).

Actually, you seem to have a good grasp on what's going on.

>  The DEC Toolkit Intrinsics manual claims that I can get the info I
>need from the non_title_width and title_font resources of vendorShell.
>These fields appear not to be available, no doubt because I replaced
>the DECified libraries with the Athena versions.

Yup.  The XtNnonTitleWidth and XtNtitleFont resources are supported by the
DECwindows implemntation of the Vendor shell, but not the MIT
implementation.  These are non-standard window manager properties.

>  Is there a general way to get information about resources controlled
>by the window manager that doesn't tie the application to a specific vendor?

Window manager-specific properties are by definition window manager-
specific.  If they were standardized, they would be supported by WMShell.

>Or, failing that, is there a common subset of resources of vendorShell
>supported by most vendors?

No, at least not yet.

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