Sign in Join
FPDoc Onlineexperiment

TColorListBox.ColorRectWidth property

Member of TColorListBoxpublishedIn unit ColorBox

Width for the color sample (swatch) displayed for colors in the item list.

Declaration

pascal
property ColorRectWidth:;

Description

ColorRectWidth is an Integer property which contains the number of pixels used to draw the color sample (or swatch) for each of the Colors in the list box control. The height for the list Item is in the ItemHeight property.

If an explicit value has not been assigned to ColorRectWidth, the value in cDefaultColorRectWidth is scaled to the current display density and used as the property value.

Setting a new value for the property causes the control to be redrawn.

Use ColorRectOffset for the number of pixels used between the color sample and its color name.

This description is the one of ColorBox.TCustomColorListBox.ColorRectWidth.

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