So many ways in XTalks

J. Landman Gay jacque at hyperactivesw.com
Thu Jul 24 13:51:51 EDT 2008


Eric Chatonet wrote:
> Bonjour à tous,
> 
> Le 24 juil. 08 à 07:49, Terry Judd a écrit :
> 
>> In your card or stack script
>>
>> ON mouseDown pMouseBtnNum
>>     IF pMouseBtnNum = 3 THEN
>>         IF word 1 of the target = "field" THEN
>>             IF not(the locktext of the target) THEN
>>                 popup btn "contextualMenu"
>>             END IF
>>         END IF
>>     END IF
>>     pass mouseDown
>> END mouseDown
> 
> I could not resist ;-)

Me either. :)

> Rev allows many ways to script:

So here is a one-liner that makes your script even harder to read.;)

function PopupAllowed pButton
   return pButton = 3 and word 1 of the target = "field" \
    and the lockText of the target= false
end PopupAllowed


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list