Jump to content

Recommended Posts

Posted

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

...

 

 

.

 

Posted

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

 

 

.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...