Default Button

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Sep 1 12:27:22 EDT 2011


Hi,

This is what I just did:

1) create new stack
2) drag one default button from the tools palette into your stack
3) edit the script of the button to make it been on mouseUp (and nothing else)
4) compile and close script
5) press return
6) hear beep

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Send me a friend request on Facebook if you like https://www.facebook.com/marksch

On 1 sep 2011, at 17:20, J. Landman Gay wrote:

> On 8/31/11 7:29 PM, Pete wrote:
>> I put a default button a card that has a couple of field controls on it.
>>  The field controls all have lockText set to true and traversalOn set to
>> false.  Pressing the return key when the card is active does not execute the
>> mouseUp handler for the default button as claimed by the dictionary.  Is
>> there some other setting of the card/button/controls that I have to use?
> 
> Funny, I never knew about this capability. I've always had to script it with a returnKey handler in the card, I've never seen a default behavior.





More information about the use-livecode mailing list