On Thursday, December 30, 2004, at 04:11 PM, Phil Mobley wrote:
On Dec 30, 2004, at 12:42 PM, Paul Bailey wrote:
I looked around for a pre-built control plugin, but couldn't find
one. Any ideas where I might come across such a monster?
Also, any clue what this sort of control might be called? I'm
thinking that 'timeline' may not be it...
I am not aware of any control like this, so you will probably have to
make your own. If one exists, then the best place to look for it is
on the RBgarage website:
http://www.rbgarage.com
If you need to make your own, take a look at the DragPics example on
the REALbasic CD or sample code (from their website). The DragPics
example should help you get started.
You would only need to support dragging in the X direction, but the
principles would be the same. In your application, the "picture" will
be your slider handle and you will need to keep track of the center
position of it to define your time line. Of course, your timeline may
have multiple handles, so you will need to test which one the user
clicked on to move.
Are you intending this project to have just a single slider, or groups
of sliders? It gets more complex with a group, but I would still make
the entire group control part of a single Canvas subclass.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|