Getting started with TMS FNC App Lock
Prerequisites
- TMS FNC Core installed and the runtime package added to the project.
- TMS FNC AppTools installed.
Add the component
- Drop
TTMSFNCAppLockfrom the palette onto a form. - Set the
Passwordproperty to the initial unlock password. - Optionally set
ActiveOnIdletoTrueand configureIdleMinutes/IdleSecondsto lock automatically after a period of inactivity.
Lock and unlock programmatically
{ Lock the application immediately: }
AppLock1.Lock;
{ Unlock programmatically (e.g. after verifying an external credential): }
AppLock1.Unlock;
React to lock and unlock events
{ Inside your form, wire these event handlers: }
procedure TForm1.AppLock1OnLock(Sender: TObject);
begin
{ Application is now locked; hide sensitive UI if needed }
end;
procedure TForm1.AppLock1OnUnlock(Sender: TObject);
begin
{ Application is unlocked; restore UI }
end;
Next steps
- Guides — idle timeout, custom dialog labels, and password verification.
- API reference — full class reference.