unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
TPItem = Record //表中记录的类型
Sign:Integer;
Caption:string;
Parent:Integer;
fcTreeView2: TfcTreeView;
fcTreeView1: TfcTreeView;
ImageList1: TImageList;
Button1: TButton;
Button4: TButton;
function FindParentNode(Id:Integer):TfcTreeNode;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, fcTreeView,SQLiteTable3, StdCtrls, ImgList, ComCtrls;
TPItem = Record //表中记录的类型
Sign:Integer;
Caption:string;
Parent:Integer;
end;
PItem = ^TPItem; //指向极开路的指针
fcTreeView2: TfcTreeView;
fcTreeView1: TfcTreeView;
ImageList1: TImageList;
Button1: TButton;
Button4: TButton;
function FindParentNode(Id:Integer):TfcTreeNode;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;