Einzelnen Beitrag anzeigen

Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#6

Re: VirtualTree problems. Soft-gems = no support at all.

  Alt 23. Jan 2010, 09:54
Delphi-Quellcode:
procedure TForm1.VSTListeGetImageIndexEx(Sender: TBaseVirtualTree;
  Node: PVirtualNode; Kind: TVTImageKind; Column: TColumnIndex;
  var Ghosted: Boolean; var ImageIndex: Integer;
  var ImageList: TCustomImageList);
begin
  Case Something of ...
   // e.g. if Column = 1 then take Imagelist1
   // *or* if that node has a special flag, take Imagelist2 etc..
    1: ImageList := ImageList1;
    2: ImageList := ImageList2;
  end;
end;
Thomas
  Mit Zitat antworten Zitat