Code for Scrolling the objects in a card

Frank Leahy frank at backtalk.com
Sat Jul 24 12:30:56 EDT 2004


On Jul 24, 2004, at 5:00 PM, use-revolution-request at lists.runrev.com 
wrote:

> From: Mark Talluto <userev at canelasoftware.com>
> Subject: Re: Code for Scrolling the objects in a card
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <37DCA3DE-DD85-11D8-8477-000393C3F5BC at canelasoftware.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
...

> What you can't do with the current implementation of groups is put your
> mouse over the scrolling group and draw a circle.  You can have a
> button (as in a toolbar) past a circle in the group and have the user
> then move and size it.  But they can not drag a circle interactively in
> a group from scratch.
>
> This applies to every other object as well.
>
> -- 
> Best regards,
> Mark Talluto
> http://www.canelasoftware.com


It seems like this would do what you want:

1) Make sure the group is pre-populated with a hidden version of every 
control type.  One circle, one line, one checkbox, etc. (whatever 
controls you want).

2) On mouseDown, have a group handler which positions and sizes the 
hidden control to the mouse location, and then sets it visible.

3) Resize and position the control in real-time in a mouseMove handler.

4) On mouseUp, copy the control, and then re-hide the original.

Wouldn't that do what you want?

-- Frank



More information about the use-livecode mailing list