Skip to main content
Table of Contents

Getting Started with TMS FNC Label Edit

Prerequisites

  • Delphi with TMS FNC UI Pack installed.
  • A new or existing VCL, FMX, or WEB application.

Steps

  1. Drop a TTMSFNCLabelEdit onto a form.
  2. Set Text to the displayed label value.
  3. Keep Editable enabled when users may edit the value in place.
  4. Set EditMode to True when code should start editing.
  5. Handle OnAccept, OnCancel, OnEditStart, and OnEditEnd when the form needs to react to the edit lifecycle.

Label edit

Configure an editable labelPascalC++
procedure TForm1.ConfigureLabelEdit;
begin
  TMSFNCLabelEdit1.Text := 'Project name';
  TMSFNCLabelEdit1.Editable := True;
  TMSFNCLabelEdit1.HorizontalTextAlign := gtaLeading;
end;

procedure TForm1.StartLabelEdit;
begin
  TMSFNCLabelEdit1.EditMode := True;
end;

void __fastcall TForm1::ConfigureLabelEdit()
{
  TMSFNCLabelEdit1->Text = "Project name";
  TMSFNCLabelEdit1->Editable = true;
  TMSFNCLabelEdit1->HorizontalTextAlign = gtaLeading;
}

void __fastcall TForm1::StartLabelEdit()
{
  TMSFNCLabelEdit1->EditMode = true;
}

Next steps