Event handler for painting
Source position: controls.pp line 2017
public property TCustomControl.OnPaint: TNotifyEvent read FOnPaint write FOnPaint;