TIvorySurface::BackgroundColor

Specifies the color of the empty background of the surface.

__property TColor 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 and DrawBackground is set to false. 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

In Ivory Draw, the interpretation of TColor is a bit different than in a high-color Windows application. You can only use colors that are in the current palette. If you're trying to use a color that is not in the palette, then Windows finds the nearest color that is in the palette, and uses that color.

Back to TIvorySurface