Skip to main content
Table of Contents

TTMSFNCIPEdit.OnChange Event

Fires when any segment of the address value changes.

API unit family: TMSFNCIPEdit Declaring type: TTMSFNCIPEdit Inherited from: TTMSFNCCustomIPEdit Type: TNotifyEvent

Syntax

FMX.TMSFNCIPEdit.hppPascalC++
property OnChange: TNotifyEvent;
__property System::Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};

Usage examples

Read the current address

Handles changes and reads the formatted value.

Read the current addressPascalC++
procedure TForm1.TMSFNCIPEdit1Change(Sender: TObject);
begin
  Caption := TMSFNCIPEdit1.IPAddress;
end;
void __fastcall TForm1::TMSFNCIPEdit1Change(TObject *Sender)
{
  Caption = TMSFNCIPEdit1->IPAddress;
}

Read the related guide