J jony1 Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-03 #1 请如何实现用鼠标点击TreeView的字节而得到他的父节或知道他属于那个父节 谢谢! jony1
小 小天 Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-03 #2 root:=TreeView.selected.parent
R robertcool Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-03 #4 我估计没有那么简单,我想jony1的意思应该是这样 function TFrm_InterviewUnit.GetTopNodetext(Node: TTreeNode): string; begin Result := ''; while Node.Parent <> nil do Node := Node.Parent; Result := Node.Text; end;
我估计没有那么简单,我想jony1的意思应该是这样 function TFrm_InterviewUnit.GetTopNodetext(Node: TTreeNode): string; begin Result := ''; while Node.Parent <> nil do Node := Node.Parent; Result := Node.Text; end;