RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSplitter.OnPaint Event

Occurs when the splitter needs to draw itself.

Pascal
property OnPaint: TNotifyEvent;
C++
__property TNotifyEvent OnPaint;

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. 

 

ClientRect 

Canvas 

Beveled

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!