1 2 3 4 5 6 7 8 9 A B
and so forth so that
1) windows can "word-wrap" it at any place
2) there should be many enough items to make VST having vertical scroll bar
3) in every item tokens are different, making easy to spot wrong position of wrapping
Now, the following application code might be seen as very weird, but it is legacy code from years and years ago.
Rehashing all of many them without knowing what all those hack-arounds were for exactly, and thus unable to predict how removing them all may side-effect the app - is no option for me now.
Anyway, it is only to make the bug visually easy to see.
Make VirtualStringTree.OnMeasureItem use ComputeNodeHeight to calculate the height
Make VirtualStringTree.BeforeCellPaint do:
Exclude(Node.Height, vstHeightMeasured);
Sender.MeasueItem.Height( TargetCanvas, Node);
Maybe even this events hijacking would be not needed, dunno.
Maybe today VTV makes exactly the same internally.
However, with code like this the unexpected happen - the long lines are wrapped BEHIND the scrollbars, making rightmost parts of the text invisible.