TCustomPaintBox32

Graphics32

TCustomPaintBox32

Hierarchy

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

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

See Also

TBitmap32, TCustomImage32, TPaintBox32