Draw a curved arrow

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Eric
Posts: 14
Joined: Thu Oct 01, 2009 9:16 am

Draw a curved arrow

Post by Eric » Sun Jul 25, 2010 6:51 am

I want to enable my user to drag from point A to point B and for this to draw a curved line with an arrowhead at the end.

But I can't figure out a quick way to do this.

It's simple to get Rev to draw an oval between points A and B.

Surely, if Rev can calculate an oval, then it should be able to calculate half an oval instead, think of it as a line - and stick an arrowhead on one end?

Any advice you experienced people?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Draw a curved arrow

Post by Mark » Sun Jul 25, 2010 11:19 am

Hi Eric,

Perhaps this helps: http://www.jamesphurley.com/runrev.html

You could also create an oval, set the angle of the oval, rotate it as needed and add an arrow head.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Eric
Posts: 14
Joined: Thu Oct 01, 2009 9:16 am

Re: Draw a curved arrow

Post by Eric » Thu Jul 29, 2010 3:44 pm

Thanks, Mark.

That works well.

Post Reply