Rectangle Problem
Ken Ray
kray at sonsothunder.com
Tue Apr 5 16:32:01 EDT 2005
On 4/5/05 12:51 PM, "David Burgun" <dburgun at dsl.pipex.com> wrote:
> Hi,
>
> On a card I have a Rectangle Object called "BoundingRect". This
> object has a script attached to it that contains the following
> handlers:
>
> mouseEnter, mouseLeave, mouseDown, mouseStillDown and mouseUp to
> track the position of the mouse and allow the user to draw
> rectangles, e.g. when the user mouseDown's and then moves the mouse,
> a rectangle graphic is created and resized until the mouse is
> released. This works just fine.
>
> Now I would like to be able to select a rectangle that has already
> been created and allow the user to modify it's size. In fact what I
> would like is the exact same functionality as the RunRev IDE
> provides, e.g. when the user clicks in the rect I'd like the grow
> boxes to appear and allow the user to resize the box.
>
> Is there any easy way to get this functionality into my stack?
Dave, is there any reason you're not using the built in functionality of Rev
- i.e. to set the tool to the rectangle tool and then after they finish
drawing to switch to the pointer tool?
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list