Code for Scrolling the objects in a card
userev at canelasoftware.com
Sat Jul 24 13:14:34 CDT 2004
On Jul 24, 2004, at 9:30 AM, Frank Leahy wrote:
> On Jul 24, 2004, at 5:00 PM, use-revolution-request at lists.runrev.com
>> 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
>> 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
>> a group from scratch.
>> This applies to every other object as well.
>> Best regards,
>> Mark Talluto
> 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
I tried working with a hack like this and it did not feel right. If my
life depended on it, this would be the way to go. But it would be nice
to have this at the engine level so that it looked and worked in a
solid fashion. I ended up going with the click on the toolbar button
and it pasted a good sized object in the center of the worksheet, then
have the user size and move it around.
More information about the use-livecode