AGI Ui Plugins 11 Send comments on this topic.
IAgUiPluginCommandTarget Interface
Windows






Windows & Linux

Description

Allows the UI plugin to handle named commands.

Public Methods

Public Method Exec Executes the specified named command.
Public Method QueryState Returns a state of the specified named command.

Remarks

IAgUiPluginCommandTarget interface allows to the User Interface plugins to handle named commands. The interface provides methods to define a status  and execute a named command. For information how to initialize a custom toolbar using the named commands, see IAgUiPlugin.OnInitializeToolbar method.

Example

Execute an action associated with a named command Copy Code
void IAgUiPluginCommandTarget.Exec(string CommandName, IAgProgressTrackCancel TrackCancel, IAgUiPluginCommandParameters Parameters) 

    //Controls what a command does 
    if (string.Compare(CommandName, "MyFirstCommand"true) == 0
    { 
    // Perform an action here. 
    } 


© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface