티스토리 뷰
다운받는곳 : Soft Gems Homepage (http://www.soft-gems.net/)
속성
VT.TreeOptions.SelectionOptions := [toDisableDrawSelection,toExtendedFocus,toMiddleClickSelect,toMultiSelect,toRightClickSelect{,toCenterScrollIntoView}];
이벤트
OnFocusChanged
procedure Xxx.VTFocusChanged(Sender: TBaseVirtualTree; Node: PVirtualNode; Column: TColumnIndex);
var
Data: PAlignData;
begin
// Data := Sender.GetNodeData(Node);
end;
OnGetImageIndex
procedure Xxx.VTGetImageIndex(Sender: TBaseVirtualTree; Node: PVirtualNode; Kind: TVTImageKind;
Column: TColumnIndex; var Ghosted: Boolean; var Index: Integer);
var
Data: PAlignData;
begin
if Kind in [ikNormal, ikSelected] then begin
Data := Sender.GetNodeData(Node);
Index := Data.ImageIndex;
end;
end;
OnGetNodeDataSize
OnGetText
Node 찾기
function TTreeWorkspace.FindSubNode(ParentNode : PVirtualNode; name : String): PVirtualNode;
var
Run: PVirtualNode;
NodeData : PWorkspaceData;
begin
Result := nil;
Run := ParentNode.FirstChild;
while Assigned(Run) do begin
NodeData := PWorkspaceData(Self.GetNodeData(Run));
if (NodeData.Title=name) then begin
result := Run;
Exit;
end;
Run := Run.NextSibling;
end;
end;
정렬하기
호출
Self.Sort(TeamNode, 0, Self.Header.SortDirection, true);
constructor TTreeWorkspace.Create(AOwner: TComponent; aImageList : TImageList);
begin
inherited Create(AOwner);
Self.OnCompareNodes := TreeCompareNodes;
end;
procedure TTreeWorkspace.TreeCompareNodes(Sender: TBaseVirtualTree; Node1, Node2: PVirtualNode; Column: TColumnIndex;
var Result: Integer);
var
NodeData1 : PWorkspaceData;
NodeData2 : PWorkspaceData;
begin
NodeData1 := Sender.GetNodeData(Node1);
NodeData2 := Sender.GetNodeData(Node2);
Result := 0;
if NodeData1.Title > NodeData2.Title then
Result := 1;
end;
- Total
- Today
- Yesterday
- 서울오토살롱
- SAS
- 튜닝쇼 2008
- MySQL
- NDK
- Xcode
- 동경
- ffmpeg
- android
- sas2009
- Linux
- koba2010
- KOBA
- Java
- Delphi
- JavaScript
- 지스타2007
- Delphi Tip
- oracle
- Mac
- ubuntu
- 송주경
- 일본여행
- Spring MVC
- flex
- 전예희
- ble
- 레이싱모델 익스트림 포토 페스티벌
- Spring
- BPI-M4
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |