headerpanel OnPaintHeader event
Return to Introduction  Previous page  Next page
Applies to
acHeaderPanel component.  

property OnPaintHeader: TNotifyEvent;  

The OnPaintHeader event occurs when Windows requires the header of 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 of panel. For example, to draw custom background.  
iiwarning This event works to draw background for the header only. If you wish to paint something on the main panel — write the OnPaint event handler.  

See also
BackgroundHeader and Background structures;  
OnPaint event.