Skip to main content
Table of Contents

Getting Started with TMS FNC IP Edit

Prerequisites

  • Delphi with TMS FNC UI Pack installed.
  • A new or existing VCL, FMX, or WEB application.

Steps

  1. Drop a TTMSFNCIPEdit onto a form.
  2. Set IPAddressType to IPv4, IPv6, or MAC.
  3. Assign IPAddress as a formatted string, or use IPv4Address / IPv6Address for typed values.
  4. Handle OnChange to validate or persist the edited address.
Configure IPv4 entryPascalC++
procedure TForm1.ConfigureIPEdit;
begin
  TMSFNCIPEdit1.IPAddressType := IPv4;
  TMSFNCIPEdit1.IPAddress := '192.168.0.10';
  TMSFNCIPEdit1.OnChange := TMSFNCIPEdit1Change;
end;

void __fastcall TForm1::ConfigureIPEdit()
{
  TMSFNCIPEdit1->IPAddressType = IPv4;
  TMSFNCIPEdit1->IPAddress = "192.168.0.10";
  TMSFNCIPEdit1->OnChange = TMSFNCIPEdit1Change;
}

Next steps