[comp.sys.mac.programmer] Scroll Bar CDEF

kv2@prism.gatech.EDU (VAUGHN KEITH DAVIS) (11/23/89)

In the Nov '89 issue of MacTutor, there is an article
which includes source code for an alternate scroll bar 
CDEF which places up/down arrows at both ends of the
scroll bar.  I agree with the author's view that having 
to move a large distance to use the arrow for small moves
is a real pain.  So I typed in the code.

Now the problem!!

How do you get the system ( and other applications ) to
recognize the new CDEF.  Inside Mac states:

	the control definition ID is

	16 * resource ID + variation code

OK, fine.
Further reading states:

	scrollBarProc = 16; { scroll bar }

So, what's the right ID?
I have tried 16 and it does work!

Here's the system:
Mac IIcx, System 6.0.3

Any ideas? Better yet, anyone have the solution!

-- 
VAUGHN,KEITH D
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:     ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!kv2
Internet: kv2@prism.gatech.edu

ewing@tramp.Colorado.EDU (EWING DAVID JAMES) (11/23/89)

In article <3741@hydra.gatech.EDU> kv2@prism.gatech.EDU (VAUGHN KEITH DAVIS) writes:
>In the Nov '89 issue of MacTutor, there is an article
>which includes source code for an alternate scroll bar 
>CDEF which places up/down arrows at both ends of the
> ...
>So, what's the right ID?
>I have tried 16 and it does work!
			^^^^ (I think he means "doesn't")

Try 1.  (The 16 that inside mac mentions is after multiplying the CDEF's ID
by 16.

Dave Ewing
ewing@tramp.colorado.edu  (128.138.238.33)
..!hplabs!boulder!onecom!tyvax!iftech!dave (My Mac IIx running uupc & MacOS!)
AppleLink: D2408	  (D2408@applelink.apple.com)

markw@kinetics.com (Mark Wittenberg) (11/24/89)

From article <3741@hydra.gatech.EDU>, by kv2@prism.gatech.EDU (VAUGHN KEITH DAVIS):
> How do you get the system ( and other applications ) to
> recognize the new CDEF.  Inside Mac states:
>

1. Use proc id 1, as noted in another reply.
2. You're on a IIcx.  Note that in Vol V it is documented that CDEF #1
   is in ROM.  Add in a ROM override resource as documented in Vol IV.
   If you need details as to how to build the correct system resource
   send me mail.

---

Mark Wittenberg			Voice:		(415) 975-4512
Kinetics/Excelan/Novell, Inc.	Internet:	markw@kinetics.com
1340 Treat Blvd. Suite 500	UUCP:		ucbvax!mtxinu!kinetics!markw
Walnut Creek, CA 94596		AppleLink:	D0927