Radio buttons as indicator lights

Gregory Lypny gregory.lypny at videotron.ca
Wed Sep 3 09:42:00 EDT 2003


Hi Graham,

	Layer the radio buttons under a transparent (invisible) graphic.

		Greg
>
> Message: 7
> Date: Wed, 03 Sep 2003 15:07:24 +0200
> To: RunRev Users List <use-revolution at lists.runrev.com>
> From: Graham <graham.samuel at wanadoo.fr>
> Subject: Radio buttons as indicator lights
> Reply-To: use-revolution at lists.runrev.com
>
> Thanks to several people who put me on the right track to get radio 
> buttons
> to work via scripting.
>
> I've now got another problem. I admit I'm slightly abusing the radio 
> button
> idea: normally the user clicks on one button and that turns off any 
> hilited
> one in the set. In my case, I **only** want this effect via scripting,
> since the user is just seeing the buttons as indicator lights - in 
> other
> words I want there to be no effect if the user clicks on a button.
>
> This turns out to be more difficult than I thought. I have turned off
> everything I can think of (apart from visibility!) in the individual
> buttons in the group, put dummy 'mouseUp' and (even) 'mouseDown' 
> messages
> in the buttons and in the group itself to 'soak up' the mouse clicks, 
> but I
> still get a residual effect, which is that when the user clicks on a
> non-hilited button, then the hilited button turns off. This is the 
> same as
> if I'd set the hilitedButton of the group to zero via script. Further
> clicks have no effect.
>
> I just want to zap this last effect but I don't know how to do it. If I
> can't find a solution, I will have to stand down the whole radio button
> idea and do it all by scripting - perfectly possible, but a pain.
>
> TIA for any advice.
>
> Graham




More information about the use-livecode mailing list