TMS FNC Core installed and the runtime package added to the project.
TMS FNC AppTools installed.
Add the component
Drop TTMSFNCAppLock from the palette onto a form.
Set the Password property to the initial unlock password.
Optionally set ActiveOnIdle to True and configure IdleMinutes / IdleSeconds to 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.