Sorry, that was my fault . The statement I suggested in this issue should be sooner:
procedure DrawBackground(State: Integer); begin // if the full row selection is disabled or toGridExtensions is in the MiscOptions, draw the selection // into the InnerRect, otherwise into the RowRect if not (toFullRowSelect in FOptions.FSelectionOptions) or (toGridExtensions in FOptions.FMiscOptions) then DrawThemeBackground(Theme, PaintInfo.Canvas.Handle, TVP_TREEITEM, State, InnerRect, nil) else DrawThemeBackground(Theme, PaintInfo.Canvas.Handle, TVP_TREEITEM, State, RowRect, nil); end;
The same applies to the following DrawThemedFocusRect nested procedure. The fix is now tied to revision r587 , so please update your Virtual Treeview. Thanks to @joachim for collaboration!
TLama source share