[comp.sys.sun] problem with SunView canvas scrolling

damien%csis.OZ@uunet.uu.net (Damien Morton) (01/21/89)

I am trying to use the canvas package under SunView under SunOS 4.0.1 on a
Sun 4/110. My problem is that I want to be able to scroll to a given (x,y)
location simultaneously with resizing the canvas (non-retained). As far as
I can tell, the only way to scroll to a given location is using
scroll_bar_scroll_to(). Unfortunately, this means that I must suffer
through three screen repaints - one when I resize, one when I scroll
horizontally, and one when I scroll vertically. Ideally there would be a
pair of canvas attributes that alter the scroll location,icod these would
update the scrollbars as the CANVAS_HEIGHT and WIDTH attributes do. There
are two undocumented canvas attributes in the canvas.h file - CANVAS_LEFT,
nad CANVAS_TOP. Doeas anyone knowwhat these are meant to do ? getting and
setting them seems to have no effect.

If anyone knows how scrollbar_scroll_to() works, or any other way to solve
my problem, please mail me as soon as possible.

		Damien Morton,
		damien@csis.oz.au