IIRC you get it by including toUseExplorerTheme in PaintOptions. However, this also changes the look of the selection (for the better IMNSHO) and, possibly, more.
For example, if I drop TVirtualStringTree
on the form and add the following event handlers:
procedure TForm1.FormCreate(Sender: TObject); begin VT.RootNodeCount := 10; VT.TreeOptions.PaintOptions := VT.TreeOptions.PaintOptions + [toUseExplorerTheme]; VT.OnInitNode := VTInitNode; VT.OnInitChildren := VTInitChildren; end; procedure TForm1.VTInitChildren(Sender: TBaseVirtualTree; Node: PVirtualNode; var ChildCount: Cardinal); begin ChildCount := 3; end; procedure TForm1.VTInitNode(Sender: TBaseVirtualTree; ParentNode, Node: PVirtualNode; var InitialStates: TVirtualNodeInitStates); begin Include(InitialStates, ivsHasChildren); end;
I get
Edit: Unfortunately, setting Form1.BiDiMode
to bdRightToLeft
gives on my German Windows 7. I donβt know if it works better in Arabic or Hebrew.
source share