Radio buttons as indicator lights

Ken Norris pixelbird at interisland.net
Wed Sep 3 16:11:12 EDT 2003


Hello yoy,

> From: "yoy" <yoy at comcast.net>
> Subject: Re: Radio buttons as indicator lights
> Date: Wed, 3 Sep 2003 09:26:29 -0400
> 
> Ungroup the radio buttons.
----------
I don't think so. That should kill the radio button behavior which he still
wants from scripting, and the user can still click one and it will hilite,
which he doesn't want.

Setting all the buttons' autoHilite to false will help. Then they can still
be hilited with radio behavior via script, but yet they won't hilite by
manually clicking.

When I tried Ken Ray's idea, i.e., unchecking "Hilite one radio button at a
time" in the group, then setting hilitedButton of group "Indicators" to x,
it worked fine, except you could still hilite each by manually clicking.
Setting the autoHilite of all the buttons to false fixed it.

repeat with x = 1 to (the number of buttons in group "Indicators")
  set the autoHilite of btn x of group "Indicators" to false
end repeat

Ken N.




More information about the use-livecode mailing list