BufferValid

Graphics32

TCustomPaintBox32.BufferValid

property BufferValid: Boolean; // protected

Description

BufferValid specifies if the current content of the Buffer bitmap is up-to-date and whether the buffer needs to be repainted.

When TCustomPaintBox32 repaints itself, it checks whether the buffer is valid. If BufferValid is True, the control simply flushes its contents to the screen, otherwise, it executes DoPaintBuffer method, which updates the buffer and sets BufferValid to True, then it copies content of the buffer to the screen.

Normally, this property should not be accessed in your application, since TCustomPaintBox32 tracks the buffer state and updates it automatically.

See Also

Buffer, DoPaintBuffer, TCustomPaintBox32