PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Implementing the application lock from the editor
  • Implementing the application lock by programming
  • Modifying the window used to lock the application
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Locking an application
Overview
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.
  • by programming via the lock functions.
How to proceed?

Implementing the application lock from the editor

To implement the lock of your application:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display the "Advanced" tab.
  3. In the "Automatic application lock" section, check "Lock the application if it remains inactive during:" and specify the idle time before locking the application.In the "Application security" section, check "Lock the application if it remains inactive during:" and specify the idle time before locking the application.
  4. Validate.

Implementing the application lock by programming

To implement the application lock by programming, all you have to do is use the LockXXX functions.

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:
  1. Include the "WinDevLockApp.wdw" window in your project. This window is found in the "Programs\Data\Preset windows\AAF" directory of WINDEV. Tip: To include this window in your project, select "File .. Import .. WINDEV elements and their dependencies".Tip: To include this window in your project, on the "Project" pane, in the "Project" group, expand "Import" and select "WINDEV elements and their dependencies".
  2. Modify the window according to your requirement. Caution: the window must not be renamed.
Notes:
  • 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.
  • Caution: To modify this window, the corresponding file must not be read-only. Modify the characteristics of the file in Windows if necessary.
Related Examples:
The Lock functions Unit examples (WINDEV): The Lock functions
[ + ] Using the LockXX functions in order to lock a sensitive application.
See also
Minimum required version
  • Version 11
Comments
Click [Add] to post a comment