TW3CheckBox
Represents class for Check-box control. W3CheckBox component react on user clicks (taps) and change state from checked to unchecked and vice-versa.
Unit: SmartCL.Controls.CheckBox.pas
- Hierarchy
- TObject
W3CheckBox is a composite component consisted from TW3Label and TW3CheckMark components.
Properties |
---|
Caption |
Checked |
Label |
Properties
Caption
Specifies text displayed beside Check-box.
property Caption: String read getCaption write setCaption;
Remarks:
Changing this property also change Caption property of TW3Label child control.
Checked
Determine whether Check-box is in checked state (checkmark is shown):
property Checked: Boolean read getChecked write setChecked;
Best place to determine if user has changed Checked property via mouse/touch (and keyboard) in OnClick event. |
Example:
procedure TForm1.W3CheckBox1Click(Sender: TObject); begin if W3CheckBox1.Checked then begin ShowMessage('Checked!'); end; end;
Label
Indicate
property Label: TW3Label read FLabel;