Page 2 of 2

Re: Shared checkboxes - "disabled" always shared?

Posted: Fri Oct 19, 2012 8:07 pm
by jacque
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.

Re: Shared checkboxes - "disabled" always shared?

Posted: Sun Oct 21, 2012 7:15 am
by japino
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

Re: Shared checkboxes - "disabled" always shared?

Posted: Sun Oct 21, 2012 4:55 pm
by Simon
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

Re: Shared checkboxes - "disabled" always shared?

Posted: Sun Oct 21, 2012 7:19 pm
by jacque
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. :)