How To Send resizeControl?

Ken Ray kray at sonsothunder.com
Fri Jun 1 18:42:04 EDT 2007


On Fri, 01 Jun 2007 13:37:57 -0700, Scott Rossi wrote:

> Recently, J. Landman Gay wrote:
> 
>>> Is it possible to trigger resizeControl from a script?
>> 
>> It should be. I have a couple things like that in a frontscript, and
>> when I type the handler name into the message box they run. You should
>> be able to just use "resizeControl" (no "send"). I'm not sure why it
>> isn't working for you. Does it work from the message box?
> 
> No, that's the trouble.  It doesn't work anywhere by script; only when I
> physically drag (resize) a control.  Tried scripting from the msg box and
> from a button.  I get same error message regardless: "can't find handler".
> 
> What can I do?

It works here for me... perhaps it's the quotes:

on mouseUp
  send "resizeControl" to button 1
end mouseUp


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/




More information about the use-livecode mailing list