How to limit a draggable image to a certain area?

William de Smet wdesmet at wanadoo.nl
Wed Feb 1 11:12:40 EST 2006


Thanks Ken,

I will look into this.

William de Smet

Op 1-feb-2006, om 16:43 heeft Ken Ray het volgende geschreven:

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list