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

Declaration
property OnPaint: TNotifyEvent;  

Description
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 header control. For example, to draw custom background.  

See also
Background structure.