|
|
|
|
|
- Overview
- How to?
- Implementing the application lock from the editor
- Implementing the application lock programmatically
- Modifying the window used to lock the application
WINDEV gives you the ability to lock your applications (after a specific duration for example). All the application windows are minimized and made invisible. A password is required when the user wants to restore the application. The following window is displayed by default:
This password can correspond to: - the Windows password of the current computer (by default),
- the user password defined in the User Groupware (if the User Groupware is used by your application),
- a specific password, defined by LockAppPassword.
The application can be locked: - from the characteristics of the project.
- programmatically with the lock functions.
Implementing the application lock from the editor To implement the lock of your application: - Open the project description: On the "Project" tab, in the "Project" group, click "Description".
- Go to the "Advanced" tab.
- In the "Application security" section, check "Automatically lock the application if it remains idle during: " and specify the idle time before locking the application.
- Validate.
Implementing the application lock programmatically To programmatically lock the application, use LockXXX. Modifying the window used to lock the application If the automatic lock is used by your application, the locking window does not appear in your project. However, the skin template of the project can be applied to it by using ChangeSkinTemplate. To customize the lock window and to translate it: - Include the "WinDevLockApp.wdw" window in your project. This window is available in the "Programs\Data\Preset Windows\EN\AAF" directory of WINDEV.
Tip: To integrate this window into your project, under the "Project" pane, in the "Project" group, pull down "Import" and select "WINDEV elements and their dependencies". - Modify the window according to your requirement. Warning: the window must not be renamed.
Remarks: - If the lock window is included in your application, you may not benefit from the improvements made to this window during the different updates. Don't forget to check whether this window has evolved.
- Attention: To modify this window, the corresponding file must not be read-only.. Modify the characteristics of the file in Windows if necessary.
Related Examples:
|
Unit examples (WINDEV): The Lock functions
[ + ] Using the LockXX functions in order to lock a sensitive application.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|