Thanks to the TLama answer ( How to underline or highlight part of the node header ) I will slightly adjust the code to select the text also in the middle.
procedure Tform_main.vt_mainDrawText(Sender: TBaseVirtualTree; TargetCanvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex; const Text: string; const CellRect: TRect; var DefaultDraw: Boolean); var BackMode, position: Integer; begin
Best wishes to TLama!
source share