TCustomIvorySurface::BackgroundColor

Specifies the color of the empty background of the surface.

__property int BackgroundColor;

Description

Use BackgroundColor to assign a background color to the surface. The new background doesn't take effect automatically; you must call Paint to repaint the surface with the new background. BackgroundColor only has effect if ClearBackground is set to true. In this case, Paint automatically fills the whole surface with the BackgroundColor. Otherwise, BackgroundColor is not used. The default value for BackgroundColor is 0.

Notes

Note that BackgroundColor is not a TColor. Instead, it's an integer. You should only use the lower 8 bits of that value to index a color in your palette.

Back to TCustomIvorySurface