TCustomIvorySurface::Paint
Forces the surface to paint itself.
void __fastcall Paint(bool subpaint = false);
Description
Use Paint
to repaint the surface. Paint does the following:
- Checks if the surface is invalid. Only invalid surfaces will be painted
- Checks if the surface is created
- Calls the RealizePaint virtual method, which in turn clears the background if necessary and calls the OnPaint event
- Releases the Device Context and uninitializes (invalidates) Canvas
- Unlocks the surface
If the subpaint parameter is true, all the dependent
surfaces will be repainted. Otherwise, only the current surface will be repainted. The latter is the default behavior.
Back to TCustomIvorySurface