Shared checkboxes - "disabled" always shared?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Shared checkboxes - "disabled" always shared?

Post by jacque » Fri Oct 19, 2012 8:07 pm

I think the error is here:

Code: Select all

if  not the checkbox_enabled of btn myButtonName of cd x of stack "MainApplication" then put myButtonName & return after field "ToDo"
The custom property is in the card, not the button, so you need to check that instead. Since none of the buttons have that custom property, they will all return false when you check for it. It isn't clear to me if you have only one custom property for a single button, or several on each card that represent each button. If there is only one, then you don't need to look for the button name, you only need to check the property:

Code: Select all

if  not the checkbox_enabled of cd x then...
If there's only one button in question then you already know its name.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Re: Shared checkboxes - "disabled" always shared?

Post by japino » Sun Oct 21, 2012 7:15 am

Ah, so may be that's it. Thank you so much Jacque. However, I went ahead with the idea of creating separate checkboxes for each card, which made everything a lot simpler for me, and I have it working now. :D

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Shared checkboxes - "disabled" always shared?

Post by Simon » Sun Oct 21, 2012 4:55 pm

Hey Klaus, Jacque,
I have 3 handlers on cd1:
on endPoverty
on endWar
on endGlobalWarming

if you could just whip up the scripts for those and get back to me it would be great. :D

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Shared checkboxes - "disabled" always shared?

Post by jacque » Sun Oct 21, 2012 7:19 pm

if you could just whip up the scripts for those and get back to me it would be great. :D
LOL! I'll see what I can do. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply