Toggling a Single Radio Button

Scott Rossi scott at tactilemedia.com
Mon Mar 9 16:05:02 EDT 2015


Disable the autoHilite of the radio.

And you can also use this for the script:

on mouseUp
   set the hilite of me to not the hilite of me
end mouseUp


Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 3/9/15, 10:58 AM, "Ray" <ray at linkit.com> wrote:

>Does anybody know how to toggle a single radio button so it behaves like
>a check box?  That is, if it's highlighted when you click it the button
>becomes dehighlighted and vice versa?
>
>This does not work:
>
>on mouseUp
>    if the hilite of me = true then
>       set the hilite of me to false
>    else set the hilite of me to true
>end mouseUp
>
>Any ideas for this simple task?
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list