[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TColorButton.ButtonColorSize

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

Declaration

Source position: dialogs.pp line 369

published property TColorButton.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

TColorButton.ButtonColorAutoSize

  

True if the color block for the button can be automatically resized to fill the unused client area.

TColorButton.GetGlyphSize

  

Gets the size for the glyph (color block / swatch) on the button control.

TColorButton.Create

  

Constructor for the class instance.


Version 4.0 Generated 2025-05-03 Home