All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---System.CATEventSubscriber | +---System.CATCommand | +---DialogEngine.CATDialogAgent | +---DialogEngine.CATStateCommand | +---CATMultiDocumentCommand
Usage: you can derive this class.
public class CATMultiDocumentCommand
Base class to define a state dialog command to achieve a selection in any nonactive document.
Role: This class enables a selection in a nonactive document from a state dialog
command running in the workbench of the active document.
Derive CATMultiDocumentCommand to create a class that should be instantiated
by a dialog agent of another state dialog command that runs in the active document.
The dialog agent must be an instance of CATOtherDocumentAgent.
When the state with which the dialog agent is associated becomes active, an instance
of CATMultiDocumentCommand is created for any nonactive document as a proxy of
the active command to select either an object or a set of objects in one of these
nonactive documents.
As for any state dialog command, you need to override the
CATStateCommand.BuildGraph method, create at least a state, associate with this state a
CATPathElement Agent instance to enable selection, and create an Action method that uses the
ReturnValue or
ReturnListOfValues method, depending on whether you enable multiselection.
public void ReturnListOfValues( | CATSO* | iList) |
public void ReturnValue( | CATPathElement* | iValue) |
protected CATOtherDocumentAgent * _fromCommand
Copyright © 2003, Dassault Systèmes. All rights reserved.