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

procedure TForm1.ConfigureLabelEdit;
begin
  TMSFNCLabelEdit1.Text := 'Project name';
  TMSFNCLabelEdit1.Editable := True;
  TMSFNCLabelEdit1.HorizontalTextAlign := gtaLeading;
end;

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

Next steps