How to limit a draggable image to a certain area?
Ken Ray
kray at sonsothunder.com
Wed Feb 1 10:43:53 EST 2006
On 2/1/06 8:57 AM, "William de Smet" <wdesmet at wanadoo.nl> wrote:
> Hi there,
> It's been a while but I've got another question now:
> In my app children can drag fields onto another field and see a reward.
> But while testing someone told me that the image could be dragged out
> of the main window and wasn't visible anymore.
> So my question here: how can I limit the draggable area so the image
> cannot be dragged out of the main window again?
Scott Rossi has a wonderful example of this dragging constraint. Open the
Message Box and type:
go url "http://www.tactilemedia.com/tmpanel.rev"
When the stack comes up, click on the "Demo Stacks" channel, and then scroll
down to "Drag Sample".
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