TCustomVirtualStringTree.OnShortenString Event

Virtual Tree View

String tree event for custom handling of string abbreviations.

Pascal
property OnShortenString: TVSTShortenStringEvent;
Description

If the text of a node does not fit into its cell (in grid mode) or is too wide for the width of the tree view it is being abbreviated with an ellipsis (...). By default the ellipsis is added to the end of the node text. 

Occasionally you may want to shorten the node text at a different position, for example if the node text is a path string and not the last folder or filename should be cut off but rather some mid level folders if possible. 

In the handler S must be processed (shortened) and returned in Result. If Done is set to true (default value is false) the tree view takes over the shortening. This is useful if not all nodes or columns need

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