Input dialogs, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 214

Advertising
background image

L-force | PLC Designer

Visualization

212

DMS 4.1 EN 03/2011 TD29

8.23

Input Dialogs
A visualization can be designed as and declared in its object properties as a "dialog".
Dialog visualizations then can be used in other visualizations in order to provide an
user input mask. They will be offered when you are configuring for example an
OpenDialog or OnDialogClosed property of a visualization element.
Besides of possibly self-designed dialogs the standard login dialog visualization is
available when the VisuDialogs.library is included in the project.
The parameters defined in the interface (Interface Editor) of a dialog visualization
automatically get written to a structure named <dialogname>_VISU_STRUCT.
("dialogname" = name of the visualization). This structure then might be accessed by
the application, for example via a function, which is configured to be called in case of a
user input on a visualization element. This allows to program the opening of a dialog
in a visualization and also the reaction on any user inputs on this dialog.

DialogManager
All visualizations declared as "dialogs" will be instantiated automatically and managed
by the internal DialogManager. This manager can be accessed via the also internal
VisuManager by calling method GetDialogManager(). The DialogManager provides
some methods for handling a visualization dialog by the application.

GetDialog(STRING stName) : Provides the dialog, which is currently concerned by an
event, as IVisualisationDialog:

Advertising