[comp.windows.x] Help w/Setting XView Resources

warsaw@nlm.nih.gov (Barry A. Warsaw) (01/04/91)

I didn't get any responses when I posted this to
comp.windows.open-look so I'll try again here...

I'm having some trouble setting the resources of some of the XView
based applications I'm using, specifically Contool (3.0b). I want to
be able to set the icon location and the un-iconified window geometry
in my .Xdefaults so twm (X11.R4) will understand them and position the
windows appropriately. I know this must be easy to do, but I don't
currently have the XView docs or source handy.  I've tried some simple
things but with no luck.  Thanks.

-Barry

cflatter@zia.aoc.nrao.EDU (Chris Flatters) (01/04/91)

> I'm having some trouble setting the resources of some of the XView
> based applications I'm using, specifically Contool (3.0b). I want to
> be able to set the icon location and the un-iconified window geometry
> in my .Xdefaults so twm (X11.R4) will understand them and position the
> windows appropriately.

You should use command-line parameters rather then the X resource database.
The flags are:

	-WP x y			set icon position to x y
	-icon_position		set icon position to x y
	-Wp x y			set window position to x y
	-position x y		set window position to x y
	-Ws w h			set window size
	-size w h		set window size
	-geometry wxh+x+y 	set window geometry (standard X11)


Although these have corresponding resources (Icon.X, Icon.Y, Window.X,
Window.Y and Window.Width and Window.Height) those resources are global.
That is they apply to all XView clients so that all XView icons would
appear at the same place if Icon.X and Icon.Y were set;  it is unlikely
that this is what you want.

		Chris Flatters