Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!hplabs!nsc!voder!apple!keith
From: keith@Apple.COM (Keith Rollin)
Newsgroups: comp.sys.apple
Subject: Re: duo-disk,Apple Demos
Message-ID: <13577@apple.Apple.COM>
Date: 9 Jul 88 01:31:16 GMT
References: <157@thelink.UUCP>
Reply-To: keith@apple.apple.com.UUCP (Keith Rollin)
Organization: Apple Computer Inc, Cupertino, CA
Lines: 37

In article <157@thelink.UUCP> oliver@thelink.UUCP (Joel Sumner) writes:
>
>2) As for new Tech examples from Apple.. Please put out something showing how 
>to make custonm dials in windows (i.e. make a scroll bar in the shape of a 
>thermometer to let kids select say, the weather for a certain day in a certain
>piec of educational software)
>
>
>Joel Sumner


Joel,

Well....I can meat you half weigh. I do have a custom control sample, but it
does not do *exactly* what you requested. I does show very clearly how to do
what you want though. It is a sizer/positioner (I still haven't figured out
a good name for it!). It is merely a box with some knobs on the corners and
edges. You can click on a knob and change the size of the box, or click on
the frame or interior and drag the whole thing around.

How is this similar to what you want to do? Well, controls are actually very
easy to write, once you know what the manual is trying to tell you (which it
doesn't do very well. Even the guy who WROTE the Control Manager had to refer
to his source code in order to write a custom control!). But basically,
controls fall into to classes: ones with indicators, and ones without. The
ones without (like simple buttons and checkboxes) are very simple to write,
even with the toolbox manual. But handling indicators is more difficult. By
using the sample we provide, you can see what each DefProc routine is used for.
From there, it is very easy to write the control you want.

Otay?


Keith Rollin                                               amdahl\
Developer Technical Support                           pyramid!sun !apple!keith
Apple Computer                                             decwrl/
"You can do what you want to me, but leave my computer alone!"