newTool

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
newTool <pToolName>
Associationscard
Summary

Sent to the caller of choose when a different tool is chosen.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
pToolName

The name of the tool that has just been chosen.

Example
on newTool pToolName
  if pToolName is "Browse" then show stack "Editing Tools"
  else hide stack "Editing Tools"
end newTool
RelatedCommand: choose
Function: tool
Description

Sent when the choose command is used to change the current tool.

The newTool message is sent to the object owning the script that executed the choose command.

Tip: To detect when the user changes tool using the Tools palette in the IDE, handle the message in a frontscript.