problem with SunView canvas scrolling

Damien Morton munnari!anucsd.oz.au!damien%csis.OZ at uunet.uu.net
Sat Jan 21 12:08:51 AEST 1989


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 at csis.oz.au



More information about the Comp.sys.sun mailing list