gettingstarted
[Top] [All Lists]

Re: Timeline

To: <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Timeline
From: Lars Jensen <larsjensen at rcn dot com>
Date: Thu, 30 Dec 2004 14:06:28 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
> I'm looking for a way to create an "iMovie" style timeline in an app -
> where you can drag events on the timeline - but don't know what type of
> control to use for it.

There's no built-in control that will do this for you; you'll have to
subclass Canvas and roll your own (or find one from a third party).

The basic idea is that you implement the MouseDown event to return true,
which allows you to receive MouseDrag or MouseMove and MouseUp events, which
are where most of your code will reside.

There's a bit of work in getting all the details right for your needs (such
as being able to cancel a drag by dragging far outside the boundaries of
your control, and being able to cancel the cancel by dragging back within
range again -- or using clicks near the edge of an object for resizing,
while clicks near the center are for moving). But it's a fairly
straightforward problem that nicely decomposes into many small steps.

lj

_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>