How to lock a field after a drag?

William de Smet wdesmet at wanadoo.nl
Wed Nov 16 04:26:54 EST 2005


(Re off-list) Yes, as in De Smet but we're not related :-)

Still need help with my problem, anyone?

William de Smet

Op 15-nov-2005, om 22:21 heeft Charles Hartman het volgende geschreven:

> (off-list) Just curious -- de Smet, as in the De Smet C compiler  
> for DOS machines, a couple of decades back?
>
> Charles Hartman
>
>
>
> On Nov 15, 2005, at 3:16 PM, William de Smet wrote:
>
>
>> Hi there,
>>
>> As a newbie I'm trying to do the following with a field:
>> drag field "1"  onto  field "2" and then count 1 up in a field   
>> called "score"  (field "1" must then be locked  until field "  
>> score" is five and next  field "1"  must be  draggable again.
>>
>> So far I use the following code:
>> ---------------------------------------------
>> on mouseDown
>>   grab me
>>   set cursor to 28
>>   lock cursor
>>   end mouseDown
>>
>> on mouseup
>>   unlock cursor
>>   set cursor to arrow
>> if intersect(me,field "2") then
>>  move me to the loc of field "2"
>>  add 1 to field  "score"
>> end if
>> end mouseup
>> ---------------------------------------------
>>
>> I thought I use 'set mousedown on me to false'  after " add 1 to  
>> field "score" but that doesn't work because I can still drag the  
>> field
>> I need help, anyone?
>>
>>
>> Thanks, William de Smet
>> _______________________________________________
>> 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