newTool?

Richard Gaskin ambassador at fourthworld.com
Sat Jul 2 02:38:41 EDT 2005


Malte Brill wrote:
> Hi all,
> 
> seems as if the newTool message is trapped in the frontscript and 
> doesn´t get sent to the card. Is this intended behaviour?
> 
>  From the docs:
> 
> Handle the newTool message if you want to change something when a tool 
> is chosen.
> 
> No way to use it in the IDE?

Use a frontScript.  devolution's main window does that, and it's a 
better move all around since the newTool message is sent to the 
topstack, and usually it's needed in a palette.

And of course, pass the message when you're done. :)

   on newTool
     UpdateMyPalettes
     pass newTool
   end newTool

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list