UserManager
UserManager
The UserManager is a fully integrated user management module. This component adds a ready-made interface to your SCADA project screen that allows operators to log in/out, add new users, and edit or delete existing users.
The greatest strength of this object is its complete customizability. The developer can configure in detail which buttons are visible, what the text labels say, or which features are active via the Advanced panel.
Common Use Cases
- Operator Login: Adding a standard “Login” and “Logout” area to the Runtime screen.
- User Management: Allowing authorized users (Admins) to create (Add), modify (Edit), or remove (Delete) operator accounts without leaving the Runtime environment.
- Security: Adding a user access level layer to the project.
Basic Configuration and Operation
The UserManager object is a ready-to-use package that works on a “drag-and-drop” basis.
- Default Function: Even without any configuration, buttons like Login, Logout, and Add already possess their default functions (opening the user management window, logging in, etc.).
- Dynamic Binding (Properties Panel): General states such as the visibility (Visible) or activity (Enabled) of the entire component can be bound to a tag from the standard Properties panel.
- Detailed Customization (Advanced Panel): The real power of this object lies in the Advanced panel. This panel offers individual access to every sub-control within the component, allowing for reconfiguration.
Properties Panel – Key Properties
Visible
- Binds the visibility of the entire UserManager panel to specific conditions. For example, it can be used to show this panel only when a user with a specific level is logged in.
Enable
- Binds whether the entire panel (buttons, text boxes) is active or disabled to specific conditions.
Advanced Panel – Key Properties
This is the panel where you configure the internal structure of the UserManager object.
Child Controls
This is the most important category in the Advanced panel. It displays a list of all internal objects that make up the UserManager component:
- _AddButton
- _DeleteButton
- _EditButton
- _LoginButton
- _LogoutButton
- _PasswordLabel
- _PasswordTextBox
- _ShowPassword (Show Password Button)
- _UserComboBox
- _UserNameLabel
How to Customize
- To the right of each child control, there is a “…” button. When you click this button, a standard property window opens specifically for that internal component, allowing you to change settings like Color, Font, Visible, Text, etc.
- BorderStyle
- Determines the border style around the entire UserManager panel (FixedSingle, None, etc.).
- BackColor
- The general background color of the panel.
Common Usage Example
Example: Standard Login/Logout Screen
To design a screen where operators can only log in/out but cannot add or delete users.
- Add a UserManager object to the screen.
- Go to the Advanced panel.
- Find the Child Controls category.
- Click the “…” button next to the _AddButton row.
- In the new window that opens, find the Visible property and set it to False.
- Repeat the same process for _EditButton and _DeleteButton.
Result: The screen now displays only the “User Name”, “Password”, “Login”, and “Logout” components. The Add, Edit, and Delete buttons are hidden.
