See attached example project
If pressing Button1
- on a screen with font size = 100% the VirtualStringTree can show approx 9 nodes at once (correct)
- on a screen with font size = 125% the VirtualStringTree can show approx 11 nodes at once (too many)
- on a screen with font size = 200% the Node Text does start to overlap
If pressing Button2 however it works as expected: regardless whats the font size the VirtualStringTree can show about 9 nodes at once
The difference between Button1 and Button2 is the position where the RootNodeCount is set.
Projects.zip
Tested on Windows 10 (version1511), using Delphi 10.1 Berlin + Version 6.3.0 of VirtualStringTree.