typedef TCustomDrawPanelEvent TCustomDrawPanelEvent;
TCustomDrawPanelEvent is the type of the OnDrawPanel event handler.
StatusBar is the status bar object that contains the panel.
Panel is the panel that needs to be redrawn.
Rect gives the (new) dimensions of the status panel.