Skip to main content
Table of Contents

TTMSFNCCheckBox Class

Check box control combining a checkbox widget with optional HTML text label.

API unit family: TMSFNCCheckBox Inherits from: TTMSFNCCustomCheckBox

Syntax

GeneratedPascalC++
TTMSFNCCheckBox = class(TTMSFNCCustomCheckBox)
class PASCALIMPLEMENTATION TTMSFNCCheckBox : public TTMSFNCCustomCheckBox

Usage examples

Configure checked state

Sets the check box text, initial state, and change handler.

Configure checked statePascal
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;

Read the related guide

Use custom check artwork

Assigns a bitmap container and named bitmap for the check widget.

Use custom check artworkPascal
procedure TForm1.ConfigureCustomCheckBoxArt;
begin
  TMSFNCCheckBox1.BitmapContainer := TMSFNCBitmapContainer1;
  TMSFNCCheckBox1.BitmapName := 'check-round';
end;

Read the related guide

Move the check widget

Places the check widget on the right side of the text.

Move the check widgetPascal
procedure TForm1.MoveCheckBoxWidget;
begin
  TMSFNCCheckBox1.WidgetPosition := hwpRight;
  TMSFNCCheckBox1.Text := '<b>Required</b> option';
end;

Read the related guide

Used by