Getting Started with TMS FNC Button
Use TTMSFNCButton when a command button needs rich text, bitmap content, or FNC-styled layout across frameworks.
Prerequisites
- Delphi with TMS FNC UI Pack installed.
- A new or existing VCL, FMX, or WEB application.
Configure a Button
- Drop a
TTMSFNCButtononto a form. - Set
Text. - Set
ShowImageand eitherBitmaporBitmapNamewhen the button should include an image. - Handle
OnClickfor the command.
procedure TForm1.ConfigureButton;
begin
TMSFNCButton1.Text := 'Refresh';
TMSFNCButton1.OnClick := TMSFNCButton1Click;
end;
procedure TForm1.TMSFNCButton1Click(Sender: TObject);
begin
ShowMessage('Refresh requested.');
end;
void __fastcall TForm1::ConfigureButton()
{
TMSFNCButton1->Text = "Refresh";
TMSFNCButton1->OnClick = TMSFNCButton1Click;
}
void __fastcall TForm1::TMSFNCButton1Click(TObject *Sender)
{
ShowMessage("Refresh requested.");
}