How to make an Unclickable Check Box

Jan Schenkel janschenkel at yahoo.com
Tue Jul 22 00:52:03 EDT 2003


--- Sannyasin Sivakatirswami <katir at hindu.org> wrote:
> I am using a check box button to indicate to the
> user that he is or is  
> not connected to the internet. on openCard, the
> script pings for a file  
> on  a particular server... if it is downloaded and
> is not a 404, then  
> the check box hilite is set to true. Problem is, I
> don't want the user  
> to be able to click the button (thereby incorrectly
> toggling the check  
> mark) Of course, one can do this:
> 
> on mouseup
>    set the hilite of me to not the hilite of me
> end mouseup
> 
> to preserve the button state an a click attempt...
> but, is there no  
> property that can be set that would simply not let
> the user click the  
> button (other than disabled, which dims the button.)
> ??
> 
> Or perhaps there is a preferred strategy to
> accomplish this goal other  
> than use of a check button...
> 
> 

Hi Sannyasin,

Turn off the autoHilite of the checkbox, and leave the
script of the checkbox empty. Now it won't be hilited
unless you set its hilite from a script.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the use-livecode mailing list