picturepanel OnPaint event
Return to Introduction  Previous page  Next page
Applies to
acHeader, acHeaderPanel, acSplitterPanel and acPicturePanel components.  

property OnPaint: TNotifyEvent;  

The OnPaint event occurs when Windows requires the panel to paint, such as when the form or panel receives focus or becomes visible when it wasn't previously.  
Your application can use this event to draw on the canvas of the panel. For example, to draw custom background.  

See also
Background structure.