TVirtualStringTree.OnGetLineStyle Event

Virtual Tree View

Display management event.

Pascal
property OnGetLineStyle: TVTGetLineStyleEvent;
Description

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.

Notes

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.

See Also

PrepareBitmaps

Class
Links
What do you think about this topic? Send feedback!