Hi
I don't know whether I've understood your problem correctly or not.
But, just in case, I usually do these things the following way:
on mouseup
if the hilite of me <> true then
set the hilite of me to true
break
end if
if the hilite of me = true then
set the hilite of me to false
end if
end mouseup
Make sure that the autohilite property of your button is set to false.
Cheers
Martin
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode