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





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. 
    } 


© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1