Check-box & radio button

yves COPPE yvescoppe at skynet.be
Thu Apr 11 02:13:01 EDT 2002


>Hello everyone,
>
>How can you set up a check-box or radio type button to
>retain it's selection status (selected or deselected),
>so that when you reopen the stack it will show the
>saved selection status. 
>
>On a field, I know that you script:
>
>on closefield
>Set the udirty to true
>end closefield
>
>This works for retaining the content of the field,
>however, I cannot figure out how to make the check-box
>button retain it's selection status.
>
>Thanks
>
>Steve
>


With a custom property

on close card
    set the rHilite of this stack to the hilite of btn "yourbtnName"
end close card


on preopencard
    put the rhilite of this stack into tboolean
    set the hilite of btn "yourbtnName" to tboolean
end preopencard
-- 



More information about the use-livecode mailing list