Skip to main content
Table of Contents

TTMSFNCLabelEdit.EditMode Property

When True, the inline edit field is visible and active; set to False to commit or cancel.

API unit family: TMSFNCLabelEdit Declaring type: TTMSFNCLabelEdit Inherited from: TTMSFNCCustomLabelEdit Type: Boolean

Syntax

FMX.TMSFNCLabelEdit.hppPascalC++
property EditMode: Boolean;
__property bool EditMode = {read=FEditMode, write=SetEditMode, nodefault};

Usage examples

Configure an editable label

Sets display text and enables in-place editing.

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;
}

Read the related guide