I'm getting issues drawing using OnAfterItemPaint event when horizontal scrolling is performed.
Basically what I want to achieve is the merging of selected cells effect, say for example 1 text for column 1 & 2, another text for column 3 & 4, etc... So far VT doesn't have any support for column merging, so I have to manually draw it.
Is there a workaround or another event that I should use instead?
Using: Delphi 7 + VirtualTreeview 4.8.5
Event source:
begin
TargetCanvas.TextOut(ItemRect.Left+ VT1.OffsetX, ItemRect.Top,
'1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF');
end;
Before scroll:
alt text http://a.imagehost.org/0869/screen1.gif
After scroll (Scroll Right, then Scroll Left):