Registriert seit: 30. Okt 2006
Ort: Neuenkirchen
197 Beiträge
Delphi 11 Alexandria
|
Re: VirtualStringTree Descendants
15. Aug 2009, 21:40
Vorschlag, Idee:
Delphi-Quellcode:
uses Contnrs;
...
function TMyVST.AddProgressBarToCell(Sender: TMyVST; Node: PVirtualNode; Column: TColumnIndex): TProgressBar;
begin
Result := TProgressBar.Create;
...
GetTextInfo(Node, Column, f, CellRect, Text);
Result.BoundsRect := CellRect;
end;
procedure TMyVST.AddProgressBarsToColumn(Sender: TMyVST; Column: TColumnIndex): TObjectList;
var
List: TObjectList;
Node: PVirtualNode;
begin
List := TObjectList.Create;
Node := Sender.GetFirst;
while Assigned(Node) do begin
List.Add(AddProgressBarToCell(Sender, Node, Column));
Node := Sender.GetNextSibling(Node);
end;
end;
Ansgar Becker
|
|
Zitat
|