|
Display management event.
property OnGetLineStyle: TVTGetLineStyleEvent;
This event is used to customize the appearance of the tree and grid lines and is only triggered if the LineStyle property is set to lsCustomStyle. The event must return a pointer to an array containing bits for an 8 x 8 pixel image with word aligned entries. For more info see PrepareBitmaps and the Windows APIs CreateBitmap and CreatePatternBrush.
It is important that you do not use dynamically allocated memory in this event (also no local variables on the stack). If
you do so then either the memory is not valid on return of the event (if allocated on stack) or will never be freed (if
allocated with a memory manager). Instead use a constant array and return its address.
PrepareBitmaps
What do you think about this topic? Send feedback!
|