이 내 코드입니다 :VST의 선택된 노드를 어떻게 강조 표시합니까?
procedure TfrmMain.vstListPaintText(Sender: TBaseVirtualTree;
const TargetCanvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex;
TextType: TVSTTextType);
begin
if vsSelected in Node.States then
begin
TargetCanvas.brush.color := clBlue;
TargetCanvas.FillRect(targetcanvas.ClipRect);
end;
end;
하지만이 일어나는 것이다 :
- 나는 노드를 클릭
- 전체 VST 이전 선택된 노드
- 선택된 노드를 제외하고 블루 그려진 파란색입니다 (그리고 VST가 기본 색상으로 되돌아갑니다)
어떻게해야합니까? OID # 2?