TIvorySurface::BackgroundSurface

Holds a pointer to the background surface.

__property TIvoryCustomSurface* BackgroundSurface;

Description

Use BackgroundSurface to assign a background surface to the surface. The change of this property will automatically invalidate the surface. The new background doesn't take effect automatically; you must call Paint to repaint the surface with the new background. BackgroundSurface is a pointer to a TCustomIvorySurface descendant component, and it only has effect if DrawBackground is set to true. Otherwise, BackgroundSurface is not used. The default value for BackgroundSurface is NULL. The BackgroundDrawStyle property determines the way Ivory Draw paints the background surface.

Notes

You may specify either BackgroundBitmap or BackgroundSurface, but you are not allowed to specify both of them. One of them is automatically set to zero.

BackgorundSurface is usually a TIvoryBitmapSurface component, but theoretically it can be any TCustomIvorySurface descendant.

Back to TIvorySurface