Skip to main content
Table of Contents

Getting started with TMS FNC WX Math Editor

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.
  • TMS FNC WX Pack installed.

Add the component

  1. Drop TTMSFNCWXMathEditor from the component palette onto a form.
  2. Set InsertionMode to control how the cursor inserts symbols.
  3. Call GetMath and assign OnGetMath to receive the expression in the format set by MathFormat (use OnChange or OnInput to follow edits live).

Retrieve the expression

Retrieve the expressionPascalC++
{ In an OnGetMath event handler: }
procedure TForm1.MathEditor1GetMath(Sender: TObject;
  AResultString: string; AResultFormat: TTMSFNCWXMathFormat);
begin
  ShowMessage(AResultString);
end;
// In an OnGetMath event handler:
void __fastcall TForm1::MathEditor1GetMath(TObject *Sender,
  System::UnicodeString AResultString, TTMSFNCWXMathFormat AResultFormat)
{
  ShowMessage(AResultString);
}

Next steps

  • Guides — virtual keyboard layouts, themes, selection modes, and speech input.
  • API reference — full class reference.