I want to change a button's "disable" property. When I click on one button I want to have it disable another button so it can't be selected. And when I click a 3rd button have the disabled button re-enabled.
I looked at setProp but can't get the syntax right.
Thanks,
Lonnie
Changing a button's "Disable" property
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Changing a button's "Disable" property
Code: Select all
set the disabled of button "theButton" to true
Code: Select all
set the disabled of button "theButton" to not the disabled of button "theButton"
"setProp" is for defining handlers that run when a particular property is set, not for actually setting that particular property. To set a property, either built-in or custom properties, just use "set".
-
- VIP Livecode Opensource Backer
- Posts: 10049
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Changing a button's "Disable" property
In addition to setting the disable property to true or false, you can also use the "enable" or "disable" commands.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Changing a button's "Disable" property
Thanks ... I can make that work!
Lonnie
Lonnie