[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Event handler signalled to perform custom drawing for the tree view control.
Source position: comctrls.pp line 3653
protected property TCustomTreeView.OnCustomDraw : TTVCustomDrawEvent |
OnCustomDraw is a TTVCustomDrawEvent property with the event handler signalled to perform custom drawing for the tree view control. It is signalled (when assigned) from the CustomDraw method, and is used to perform custom drawing for the control in the cdPrePaint drawing stage. It occurs during execution of the Paint method.
An application can implement OnCustomDraw to perform custom drawing for the overall control including borders and decorations not related to nodes on the tree view control.
Arguments to the event handler include:
The handler routine should use the Canvas for the control to perform drawing operations on the specified bounds rectangle.
Use OnAdvancedCustomDraw to perform additional draw operations needed before the tree nodes on the control is painted.
Use OnCustomDrawItem and OnAdvancedCustomDrawItem to perform custom drawing for tree nodes on the control. Use OnCustomDrawArrow to perform custom drawing for expand/collapse indicators for tree nodes on the control.
|
Renders the tree view control. |
|
|
Implements the Paint method for the control. |
|
|
Performs custom drawing using the assigned event handlers for the tree view control. |
|
|
Event handler signalled to custom draw the grid control using drawing stages. |
|
|
Event handler signalled to custom draw an item (tree node) on the control. |
|
|
OnAdvancedCustomDrawItem - event handler for advanced custom drawing item. |
|
|
Event handler signalled to custom draw expand / collapse (fold) indicators for a tree node. |
|
|
TCustomDrawStage a series of constants to define the drawing stages for custom-drawn controls. |
|
|
TCustomDrawTarget - enumerated type controlling how a target object is drawn. |
Version 3.2 | Generated 2024-02-25 | Home |