[comp.sys.mac] scrolling code examples wanted

acb@eastek.oz (Andrew Bernard) (05/19/89)

hi there folks!

I'm looking for some examples of scrolling code (C or Pascal) that
works by shifting the _origin_ of a GrafPort, rather than by blitting
and relocating the contents. (i.e. using SetOrigin) Inside Mac is
pretty vague on how to use calls like SetOrigin properly, what with
the ClipRgn manouevering and such. MacTutor has not yet published an
example that uses SetOrigin either (to my knowledge)

I need to do it this way because I have a group of Objects located in
the port, and would prefer not to have to relocate each one when the
user scrolls. Further, I don't want to have to rewrite the scrolling
routines if the nature of the stuff being scrolled changes. SetOrigin
seems to be the most generic way to do it.

The best solution would be one that gave me scroll bars that work just
like normal - unhighlighting at all the right times etc.

Maybe folks out there have some better ideas, if so please let me
know!

  
	cheers!
		
--
andrew bernard, systems engineer

Eastek Limited, 476 St Kilda Road, Melbourne, Australia, 3004

ACSnet:      acb@eastek.oz
Phone:      +61 3 266 2566
Fax:        +61 3 820 9440

======================================================================