From RAD Studio API Documentation
Jump to: navigation, search


property OnPaint: TNotifyEvent read FOnPaint write FOnPaint;


__property System::Classes::TNotifyEvent OnPaint = {read=FOnPaint, write=FOnPaint};


Type Visibility Source Unit Parent
event published
Vcl.ExtCtrls TSplitter


Occurs when the splitter needs to draw itself.

Write an OnPaint event handler to customize the appearance of the splitter. For example, use an OnPaint event handler to give a splitter the appearance of the splitters that appear in cool bar objects. Use the Canvas property as a drawing surface for painting the splitter. Use the ClientRect property to determine the coordinates of the canvas on which to paint the splitter.

When a splitter object receives a WM_PAINT message, it paints its background before generating the OnPaint event. If the Beveled property is true, the beveled appearance will also be added before the OnPaint event. Most applications set Beveled to false when using the OnPaint event to customize the appearance of the splitter.

See Also