Visualizations that are a “Dialog” visualization type and are used to prompt an input are instantiated automatically and managed by the internal dialog manager.
In the application, the dialog manager can be accessed via the also internal Visualization
Manager by calling the method GetDialogManager
.
The dialog manager is provided with the following methods for handling a dialog.




NOTICE

You can program the method calls in function blocks or functions which are themselves
called from the visualization by the action Execute ST Code
.
Moreover, you can program the method calls in the application code. Make sure that
the call runs in VISU_TASK
. If this is not the case, then the behavior is undefined.
Method 'GetDialog'
Returns the instance (IVisualisationDialog
) of the dialog whose name is passed.
Name |
Data Type |
Description |
---|---|---|
|
|
Name of the dialog |
Name |
Data Type |
Description |
---|---|---|
|
|
Instance ( |
Method 'GetClientInterface'
Returns a pointer to the dialog structure.
Respective dialog data held for each display variant.
Name |
Data Type |
Description |
---|---|---|
|
|
Name of the visualization |
pClient |
|
Pointer to the display variant |
Name |
Data Type |
Description |
---|---|---|
|
Example: |
Pointer to the dialog structure |
Method 'OpenDialog'
Opens the dialog of the client.
Next to it, there is the extended method 'OpenDialog(number)'.
Name |
Data Type |
Description |
---|---|---|
|
|
Name of the visualization |
|
|
|
|
|
|
|
|
Name |
Data Type |
Description |
---|---|---|
|
Method 'CloseDialog'
Closes the dialog of the client.
Name |
Data Type |
Description |
---|---|---|
|
|
Dialog object as received by |
|
|
Name |
Data Type |
Description |
---|---|---|
|
Method 'CloseDialog2'
Closes the dialog of the client. Extension of the method CloseDialog
.
Name |
Data Type |
Description |
---|---|---|
|
|
Dialog object as received by |
|
|
|
|
|
Specification of possible options for closing the dialogs. Only the values 0 (behavior
as for |
Name |
Data Type |
Description |
---|---|---|
|