Difference between revisions of "IAdeUIWindowCallbacks"
(Created page with "Category:ADE Classes Category:ADE User Guide <!--T:1--> ADE User Guide > ADE Server Class Reference > <!--T:2--> ''New to ADE 5.0'' <!--T...") |
|||
Line 12: | Line 12: | ||
An interface which contains the new [[ShowWindow|ShowWindow()]] and [[CloseWindow|CloseWindow()]] functions. | An interface which contains the new [[ShowWindow|ShowWindow()]] and [[CloseWindow|CloseWindow()]] functions. | ||
− | This interface is also called when sending older typescript "Open windowType obj" and "Close windowType obj" commands. | + | This interface is also called when sending older typescript "Open windowType obj" and "Close windowType obj" commands. E.g.: "Open Diagram ident", "Show Diagram ident", "Open Result ident", "Open Object ident", "Close Diagram ident" |
− | + | This interface allows the use of these in a more general fashion, including cases where scripts appear in conditionals, in functions, etc. These typescript commands have been deprecated, and it is recommended to use the newer functions instead. | |
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. | 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. | ||
Line 20: | Line 20: | ||
To use this, your program must implement a COM class with the [[ShowWindow|ShowWindow()]] and [[CloseWindow|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. | To use this, your program must implement a COM class with the [[ShowWindow|ShowWindow()]] and [[CloseWindow|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. | + | 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 still work the same as in ADE 4.6 and earlier. |
+ | |||
+ | == Methods == | ||
+ | |||
+ | ===void [[IAdeUIWindowCallbacks::ShowWindow|ShowWindow]]([in] string objIdent, [in] string objType)=== | ||
+ | Called when [[ShowWindow]]() is evaluated. Also called when the deprecated Typescript commands "Open windowType obj " "Show windowType obj" and "Edit obj" are sent. | ||
+ | ===void [[IAdeUIWindowCallbacks::CloseWindow|CloseWindow]]([In] string objIdent, [in] string objType)=== | ||
+ | Called when [[CloseWindow]]() is evaluated. Also called when the deprecated typescript command "Close windowType obj" is sent. |
Revision as of 06:54, 23 December 2016
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. E.g.: "Open Diagram ident", "Show Diagram ident", "Open Result ident", "Open Object ident", "Close Diagram ident"
This interface allows the use of these in a more general fashion, including cases where scripts appear in conditionals, in functions, etc. These typescript commands have been deprecated, and it is recommended to use the newer functions instead.
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 still work the same as in ADE 4.6 and earlier.
Methods
void ShowWindow([in] string objIdent, [in] string objType)
Called when ShowWindow() is evaluated. Also called when the deprecated Typescript commands "Open windowType obj " "Show windowType obj" and "Edit obj" are sent.
void CloseWindow([In] string objIdent, [in] string objType)
Called when CloseWindow() is evaluated. Also called when the deprecated typescript command "Close windowType obj" is sent.
Enable comment auto-refresher