There was a thread about rotary knobs a couple weeks ago, and it
inspired me to create one for an app I'm toying around with. It's
entirely canvas-based (no linked images), and the hardest part (for
me, at least) was getting through enough basic trig (after having not
done it in almost 20 years) to get the little marker to go around in a
circle.  I based the look on the rotary knob that I found in Quartz
Composer in OS X. In the end, it was actually easier than I thought it
was going to be.

It seems to me, in the end, that an experienced programmer will spend
more time on the *look* of the rotary knob than you will on the actual
functionality, because as pointed out eariler, the knob will be part
of a broader style for the interface as a whole. Properllerhead's
Reason is a treasure trove of interface ideas.

--
Philip Regan
[EMAIL PROTECTED]
http://homepage.mac.com/pregan
REALBasic 2005r4, Applescript
Mac OS 10.3.9

On 4/2/06, Mel Patrick <[EMAIL PROTECTED]> wrote:
> I've been looking around for some examples or source for custom
> canvas controls, specifically knob or slider styles. And of course,
> found very little.
>
> There appears in the NUG list a lot of requests over the years for
> these types of controls but very little offered in response to them.
>
> For anyone designing anything from a controller (midi, volume,
> mixers) to who knows what, these types of controls would be far more
> graphically pleasing than the RB slider. And hopefully one heck of a
> lot more versatile.
>
> For example, a slider class could have hatch marks/numbers/bar graph
> on left or right side (top or bottom for horizontal controls), custom
> "thumbs", static fields linked to the control for the display of the
> control current setting, a bypass mode so a control could be set
> without generating a "change" event and so on. Add in the usual min/
> max/current/step and the ability to handle "center" as off (like a
> pan/balance control in audio), direction left to right or bottom to
> top (or vice versa) and you'd have one nicely rounded out control.
>
> I put an example sample of a few controls on my server:
> http://www.wabbitwanch.net/rb/controlSamples.jpg
>
> Since controls like this don't appear to exist, I wonder if it's
> because it's quite difficult to write the control, or the ROI would
> be quite low so it's not worth the effort for a developer?
>
> I don't think that I'd have the required ability to create a control
> like this, but I'm sure that many do. Perhaps if others joined in, we
> could entice someone to create a package of custom canvas controls to
> sell at a reasonable cost.
>
> If not, well there's always the RB "slider" ...shudder...:-)
>
> Mel
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to