Virtual-TreeView icon indicating copy to clipboard operation
Virtual-TreeView copied to clipboard

Drawing issue when LineMode = lmBands

Open beNative opened this issue 3 years ago • 4 comments

I added an example project in which the issue can be reproduced. After startup just unfold some nodes and you will see that the bands are not drawn correctly. afbeelding VTBug.zip

beNative avatar Mar 08 '22 08:03 beNative

When I compile your sample with V7.6.x under Delphi 11 the results looks quite OK: grafik

Which version of Virtual TreeView and Delphi did you use?

joachimmarder avatar Mar 13 '22 14:03 joachimmarder

Hi, I use the trunk version on Delphi 10.4 Community Edition (32bit). It seems to have improved since the last commits you did but I'm still able to get inconsistent drawing when collapsing individual nodes. I will try it tomorrow on D11 to see if it behaves differently.

afbeelding

afbeelding

beNative avatar Mar 14 '22 16:03 beNative

On D11 and another PC I was able to reproduce the same issue:

afbeelding

beNative avatar Mar 16 '22 12:03 beNative

I tested again with the new Delphi 11.1 and the results remained the same. It looks OK, but not perfect here, sometimes lines are missing: grafik

grafik

Since I adopted the project several years ago, I never came across the setting LineMode lmBands or its code. So I doubt that many people are using it. I will accept pull request for this issue but I don't think it makes sense to invest much time here

joachimmarder avatar Mar 20 '22 09:03 joachimmarder