Guest Posted March 15, 2011 Posted March 15, 2011 Message from: "bettersoft" var Node, GrandNode : TTreeNode; if OprUniTreeView.Selected.Level=0 then begin Node :=OprUniTreeView.Selected.getFirstChild; while Node<>nil do begin Node.ImageIndex := ImgIndex; Node := Node.GetNextSibling; end; end; Node is nil ? OprUniTreeView.Selected.getFirstChild Why not UniTreeNode, but the TreeNode? OprUniTreeView.Selected.GetLastChild Is TtreeNode OprUniTreeView.Selected.getNextSibling is TtreeNode ... . Quote
Guest Posted March 15, 2011 Author Posted March 15, 2011 Message from: "bettersoft" unitreeview all nodes, all the functions of the property should be UniTreeNode, if TreeNode, simply can not traverse. Want to correct! Thank you . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.