Hi Mark / Dave, Thanks :-) Pretty much all of the interface elements are custom RB canvas subclasses. That said, we're moving to our own Graphics-based interface for a future version, due to redraw flicker problems with overlaid canvases on Windows. (See the "Double-buffered windows on Windows" thread back in Feb 06 for more info).
If anyone's interested, the pitch, volume, crossfader and song position sliders are all subclassed from one generic slider class, which deals with the generic idea of a knob on a background, and handles mouse clicks, drags, etc. Likewise, all the rotary knobs have a base class which deals with the min / max values, and handles mouse movements. And no, sadly I can't share the classes. So, cheers for the compliment - it goes to show that you can do a lot with canvases :-) Dave. > From: Mark O'Neill <[EMAIL PROTECTED]> > Reply-To: REALbasic NUG <[email protected]> > Date: Thu, 16 Mar 2006 17:58:34 -0000 > To: 'REALbasic NUG' <[email protected]> > Subject: RE: rotary knob? > > Wow, amazingly professional UI. Hats off. > > Mark. > > | -----Original Message----- > | From: [EMAIL PROTECTED] > | [mailto:[EMAIL PROTECTED] On > | Behalf Of Dave Addey > | Sent: 16 March 2006 16:28 > | To: REALbasic NUG > | Subject: Re: rotary knob? > | > | Hi Erick, > | > | I've done this via method b), and it's really not that much > | of a pain. One > | session of sitting down with the rotate tool in Photoshop and > | automating the > | export process, and you're done. I found that 72 graphics > | made for a smooth > | rotate - one for every 5 degrees. My class stores the actual > | angle even > | more accurately, and just uses the closest angle graphic when > | rendering. > | > | My DJ app uses this approach: > | > | http://www.dj1800.com/images/fullscreen.gif > | > | Works well if you want a true knob "turning" effect. > | > | Unfortunately, I'm a little wary of sharing the class or > | graphics - last > | time I shared something like this (it was some iTunes parsing > | classes in the > | previous case), a competitor (quite legitimately and fairly) > | integrated them > | into his app, so I don't really want to do the same again :-( > | > | Dave. > | > | > From: "E. Tejkowski" <[EMAIL PROTECTED]> > | > Reply-To: REALbasic NUG <[email protected]> > | > Date: Wed, 15 Mar 2006 19:16:56 -0600 > | > To: REALbasic NUG <[email protected]> > | > Subject: rotary knob? > | > > | > Does anyone have an example of a rotary knob that has the following > | > characteristics? > | > > | > (a) looks good, rotates smoothly and doesn't look like it has > | > "corners" in the travel > | > (b) doesn't require 64 pre-rendered/rotated knob images > | > (c) can use 2DShape, Graphics, or whatever > | > > | > I've found a few on the web, but most failied a and/or b. > | > > | > Thanks, > | > Erick > | > _______________________________________________ > | > 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> > | > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.2.4/282 - Release Date: 15/03/2006 > > > _______________________________________________ > 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>
