Tooltip (Command)

Description

Returns or sets the tooltip for that command as a String.

C# Syntax

    // get accessor
    String rtn = Command.Tooltip;

    // set accessor
    Command.Tooltip = String;

Examples

VBScript Example

    RemoveCommand "MyCommand" ' remove any instance of existing command
    set cmd = Application.CreateCommand("MyCommand")
    cmd.ScriptingName = "MyCommand"
    cmd.Language = "VBScript"
    cmd.Code = "LogMessage ""MyCommand invoked"""
    cmd.tooltip = "This is the tooltip of MyCommand"
    Application.AddCommand cmd
    LogMessage "Command tooltip: " & cmd.tooltip

    ' Result of running this example:
    'INFO : "Command tooltip: This is the tooltip of MyCommand"

Autodesk Softimage v7.5