Setting button hilite in a script

Devin Asay devin_asay at byu.edu
Mon Mar 11 19:32:03 EDT 2013


On Mar 11, 2013, at 5:08 PM, Peter Bogdanoff wrote:

> Hi all,
> 
> In the course of a script that does other things, I want to set the hilite of a radio button--but it's not happening:
> 
> 	if there is a button "Local" then
>      		set the hilite of button "Local" to true
> 
> doesn't do that.
> 
> 	click button 1 at the loc of button "Local"
> 
> doesn't work either.
> 
> I've tried adding to the script
> 
> 	wait 1 milliseconds with messages
> 
> No go.
> 
> ??

Peter,

This first thing I do in cases like this is check to see whether I have inadvertently created two buttons with the same name. Only the button with the lower layer will be affected.

HTH

Devin 

Devin Asay
Office of Digital Humanities
Brigham Young University





More information about the use-livecode mailing list