Setting defaultbutton

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Setting defaultbutton

Post by keyless » Sun Apr 06, 2008 11:35 pm

After a user clicks one defaultbutton on a card, I want to set another button to a defaultbutton, what is the correct syntax for this, I've tried several obvious ways but none seemed to set the buttons defaultbutton property to true.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Mon Apr 07, 2008 12:16 am

Code: Select all

set the default of button 1 to true
set the default of button 2 to false
Hint: If you mouse over the name of a setting in the property inspector, it'll tell you the rev term of the property the inspector actually is changing. So for the "Default Button" check mark this was "default", so I looked at the documentation entry of the default property.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Mon Apr 07, 2008 6:23 am

thanks, I got defaultButton stuck in my head and since that was in documentation I figured that was it.

Post Reply