headerpanel 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.  
iiwarning This event works to draw background for the main panel only. If you wish to paint something on the header — write the OnPaintHeader event handler.  

See also
Background and BackgroundHeader structures;  
OnPaintHeader event.