TCnButtonBase.FlatStyle Property

Gets or sets the flat style appearance of the button control.

Namespace: CNClrLib.Control.ButtonBase
published
 property FlatStyle: TFlatStyle read GetFlatStyle write SetFlatStyle default TFlatStyle.fsStandard;

Property Value

One of the FlatStyle values. The default value is Standard.

When the FlatStyle property of the TCnRadioButton and TCnCheckBox classes is set to System, the control is drawn by the user's operating system and the check alignment is based upon the CheckAlign and TextAlign property values. The CheckAlign property value is not changed, but the appearance of the control can be affected. The check box is horizontally aligned with either the left or right edge of the control (a left or center alignment appears left aligned, right remains unchanged), and vertically aligned the same as the descriptive text.