Checkbox problem
David Vaughan
drvaughan55 at mac.com
Wed May 15 03:59:02 EDT 2002
On Wednesday, May 15, 2002, at 06:00 , Fred_D_Yocum at mail.mcc.org wrote:
> I have a number of fields that I want to remain invisible --unless the
> user
> checks a check box on a card.
> I cannot figure out how to trap the on/off state of the button. What
> does rev.
> call this state?
> Here is my script which is on the checkbox control
>
> on MouseUp
> if ??? of me is true then
> set the invisible of field ID "1068" to true
> set the invisible of field ID "1069" to true
> set the invisible of field ID "1070" to true
> else
> set the invisible of field ID "1068" to true
> set the invisible of field ID "1069" to true
> set the invisible of field ID "1070" to true
> end if
> end MouseUp
Fred
A checkbox or radio button state is given by "the hilite", so you could
do this thus:
on mouseUp
repeat with x = 1068 to 1070
set visible of field id x to not (the hilite of me)
end repeat
end mouseUp
regards
David
>
> TA
> Fred D
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list