Guest Posted March 15, 2011 Share 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 Link to comment Share on other sites More sharing options...
Guest Posted March 15, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
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.