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

Page 216

Advertising
background image

L-force | PLC Designer

Visualization

214

DMS 4.1 EN 03/2011 TD29

Example of using the Login-Dialog provided by VisuDialog.library:
In this example a button element in a visualization is configured in a way that on a
mouse-click on this button a login dialog gets opened, where a user name and
password can be entered. A default login dialog is used for this purpose, provided by
the VisuDialog.library. However, self-created dialogs could be handled in the same
way:


Configuration of the "Login" button:
A button element is inserted in a visualization. It gets configured with a text property
"Login" and the following two input properties:
1. OnMouseDown / Execute ST-Code: call function OpenLoginDialog(pClientData).
Variable pClientData must be passed to an appropriate function OpenLoginDialog
available in the project.

2. OnDialogClosed / Close Dialog / Execute ST-Code: call function
OnLoginDialogClosed(pClientData)

Advertising