🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10455

problem with SunView canvas scrolling

#10455
From: Damien Morton
Date: Sat, 21 Jan 1989 02:08
18 lines
1610 bytes
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
Technical Details
Message-ID: <178@csis.oz>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!nosc!ucsd!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!nosc!ucsd!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: munnari!anucsd.oz.au!damien%csis.OZ@uunet.uu.net (Damien Morton)
Newsgroups: comp.sys.sun
Subject: problem with SunView canvas scrolling
Message-ID: <178@csis.oz>
Date: 21 Jan 89 02:08:51 GMT
Sender: usenet@rice.edu
Organization: CSIRO Division of Information Technology, Australian National Uni, Canberra
Lines: 18
Approved: Sun-Spots@rice.edu
Original-Date: 13 Jan 89 23:54:01 GMT
X-Sun-Spots-Digest: Volume 7, Issue 115, message 2 of 18