IAdeUIWindowCallbacks
ADE User Guide > ADE Server Class Reference >
New to ADE 5.0
An interface which contains the new ShowWindow() and CloseWindow() functions.
This interface is also called when sending older typescript "Open windowType obj" and "Close windowType obj" commands. This allows the use of these in a more general fashion, including cases where scripts appear in conditionals, in functions, etc.
E.g.: "Open Diagram ident", "Show Diagram ident", "Open Result ident", "Open Object ident", "Close Diagram ident"
The "IAde" prefix stands for "Interface ADE". Your own code can define a class that subclasses this interface and implements its method, and then pass it to CAEngine::SetCallbackObject.
To use this, your program must implement a COM class with the ShowWindow() and CloseWindow() functions, As a COM class, it will implement the QueryInterface method from IUnknown, and its QueryInterface method must report that it implements this interface. You then instantiate an instance of the class and pass a pointer to that object to CAEngine::SetCallbackObject.
When your application does not implement this interface, the ShowWindow() and CloseWindow() functions will do nothing when evaluated in ADE, and the older script commands will work the same as in ADE 4.6 and earlier.
Enable comment auto-refresher