Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvMemo
Using the design time editor at runtime

Using the design time editor at runtime is easy. First of all, add the unit uMemoEdit to the uses list. If is desired a memo is being edited at runtime using the design-time editor, following code can be used:
procedure TForm2.Button1Click(Sender: TObject);
var
  me: TTMSMemoEdit;
begin
  me := TTMSMemoEdit.Create(self);
  try
    me.AdvMemo1.Lines.Assign(AdvMemo1.Lines);
    if me.ShowModal = mrOK then
      AdvMemo1.Lines.Assign(me.AdvMemo1.Lines);
  finally
    me.Free;
  end;
end;