Skip to main content
Table of Contents

Getting started with TMS FNC WX Barcode

Prerequisites

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

Add the component

  1. Drop TTMSFNCWXBarcode from the component palette onto a form.
  2. Set BarcodeType to the required symbology (for example bciCode128).
  3. Set Text to the data to encode; the control renders the barcode.

The minimal barcode — create it, choose a symbology, and set the data:

Generate a barcodePascalC++
procedure TForm1.GenerateBarcode(const AData: string);
begin
  FBarcode := TTMSFNCWXBarcode.Create(Self);
  FBarcode.Parent := Self; // the control renders its image once parented
  FBarcode.Align := TAlignLayout.Client;

  FBarcode.BarcodeType := bciCode128; // the symbology to encode with
  FBarcode.Text := AData;             // the data placed in the barcode
end;
void __fastcall TForm1::GenerateBarcode(const System::UnicodeString AData)
{
  FBarcode = new TTMSFNCWXBarcode(this);
  FBarcode->Parent = this; // the control renders its image once parented
  FBarcode->Align = TAlignLayout::Client;

  FBarcode->BarcodeType = TTMSFNCWXBarcodeType::bciCode128; // the symbology to encode with
  FBarcode->Text = AData;                                   // the data placed in the barcode
}

Next steps

  • Guides — symbologies, generation events, and appearance.
  • API reference — full class reference.