Getting Started with TMS FNC Check Box
Use TTMSFNCCheckBox to present a Boolean option with HTML-capable text and optional custom widget images.
Prerequisites
- Delphi with TMS FNC UI Pack installed.
- A new or existing VCL, FMX, or WEB application.
Configure a Check Box
- Drop a
TTMSFNCCheckBoxonto a form. - Set
Text. - Set or read
Checked. - Handle
OnChangewhen the option changes.
procedure TForm1.ConfigureCheckBox;
begin
TMSFNCCheckBox1.Text := 'Enable notifications';
TMSFNCCheckBox1.Checked := True;
TMSFNCCheckBox1.OnChange := TMSFNCCheckBox1Change;
end;
procedure TForm1.TMSFNCCheckBox1Change(Sender: TObject);
begin
TMSFNCBadge1.Visible := TMSFNCCheckBox1.Checked;
end;
void __fastcall TForm1::ConfigureCheckBox()
{
TMSFNCCheckBox1->Text = "Enable notifications";
TMSFNCCheckBox1->Checked = true;
TMSFNCCheckBox1->OnChange = TMSFNCCheckBox1Change;
}
void __fastcall TForm1::TMSFNCCheckBox1Change(TObject *Sender)
{
TMSFNCBadge1->Visible = TMSFNCCheckBox1->Checked;
}