TCustomPaintBox32

Ancestors

TCustomControl

Description

TCustomPaintBox32 is a common ancestor for TPaintBox32 and TCustomImage32 objects.

In addition to properties, inherited from TCustomControl, it provides optimized double buffering. The back buffer is a TBitmap32 object, which stores an image data before flushing it to the screen.

Since TCustomPaintBox32 is double buffered, there is no need to redraw its contents every time the control receives WM_PAINT message, as with standard TPaintBox. The repainting is still required when the control is resized.

Reference

Methods Properties Events
Destroy Buffer OnMouseEnter
DoPaintBuffer BufferOversize OnMouseLeave
Flush BufferValid
ForceFullInvalidate Options
GetViewportRect RepaintMode
Invalidate
Loaded
Resize
SetBounds

See Also

TBitmap32, TCustomImage32, TPaintBox32