L
linger_1
Unregistered / Unconfirmed
GUEST, unregistred user!
代码是这样的,我想在form2里调用form1的变量pnodedata(node.Parent.data)^.id ,node.parent.Text
该如何写呢?
procedure TMDIflfg.Button1Click(Sender: TObject);
var
node: ttreenode;
nodedata : Pnodedata;
begin
if(tree.selected<>nil) then
node :=tree.selected
else
exit;
if node.Level =2 then
begin
addflfg.show;
addflfg.edit1.setfocus;
addflfg.groupbox1.Caption := '添加'+ node.parent.Text + '下子节点';
end;
该如何写呢?
procedure TMDIflfg.Button1Click(Sender: TObject);
var
node: ttreenode;
nodedata : Pnodedata;
begin
if(tree.selected<>nil) then
node :=tree.selected
else
exit;
if node.Level =2 then
begin
addflfg.show;
addflfg.edit1.setfocus;
addflfg.groupbox1.Caption := '添加'+ node.parent.Text + '下子节点';
end;