[comp.windows.x] another basic question

gjw@ANDREAS.WR.USGS.GOV (Gregory J. Woodhouse) (11/08/90)

I'm attempting to rewrite a program I wrote in Xlib using Xview.  My motivation
is to simplify the introduction of menus, scrollbars and the like. (surprise!)
My program will maintain several independent windows on the same screen.  In
the Xlib version, the function call

connect_to_server(&d_width, &d_height);

provides me withe the dimensions of the physical screen, so I can calculate
the sizes and positions of my subwindows.  I've been going through Dan
Heller's book, trying to determine how I can do the same thing in Xview.
I presume there must be some way I can do a xv_get() on the server or some
related object, but I also have the feeling that I'm on the wrong track.

My requirements are quite simple: I want several tiled windows on the
screen of the same width, but not necessarily of the same height.  Presumably,
these would be implemented as canvases and frames.  One of these windows
should be a view into a larger canvas which is equipped with a scrollbar.
Can anyone point me in the right direction?  (I am an xview beginner.)

-----------------------------------------------------------------------------
Gregory Woodhouse          |We know that the center of the earth
gjw@andreas.wr.usgs.gov    |is a fiery molten mass...but it's not
(415) 329-4694 (office)    |good to dwell on it.
(415) 325-7802 (home)      |
U.S. Geological Survey / 345 Middlefield Rd. MS 977 / Menlo Park, CA 94025
-----------------------------------------------------------------------------