Sign in Join
FPDoc Onlineexperiment

TColorButton.ButtonColorSize property

Member of TColorButtonpublishedIn unit Dialogs

Size of the color block (or swatch) on the button control.

Declaration

pascal
property ButtonColorSize: Integer read FButtonColorSize write SetButtonColorSize;

Description

ButtonColorSize is an Integer property with the size for the color block (or swatch) displayed on the control. The default value for the property is 16 (pixels) as assigned in the constructor for the class instance. Its value is used in the GetGlyphSize method when ButtonColorAutoSize is set to False, and represents both the width and height returned for the button glyph.

Changing the value for the property causes the control to be redrawn.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.