Skip to main content
Table of Contents

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

  1. Drop TTMSFNCAppLock from the palette onto a form.
  2. Set the Password property to the initial unlock password.
  3. Optionally set ActiveOnIdle to True and configure IdleMinutes / IdleSeconds to lock automatically after a period of inactivity.

Lock and unlock programmatically

Inline example 1PascalC++
{ Lock the application immediately: }
AppLock1.Lock;

{ Unlock programmatically (e.g. after verifying an external credential): }
AppLock1.Unlock;
// Lock the application immediately:
AppLock1->Lock();

// Unlock programmatically after verifying an external credential:
AppLock1->Unlock();

React to lock and unlock events

Inline example 2PascalC++
{ 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;
// Inside your form, wire these event handlers:
void __fastcall TForm1::AppLock1Lock(TObject *Sender)
{
  // The application is now locked; hide sensitive UI if needed.
}

void __fastcall TForm1::AppLock1Unlock(TObject *Sender)
{
  // The application is unlocked; restore UI.
}

Next steps

  • Guides — idle timeout, custom dialog labels, and password verification.
  • API reference — full class reference.