Jump to content

TUniTreeNode Expand(Recurse: Boolean) - doesnt work


Recommended Posts

  • 2 months later...
Posted

It seems that it doesn't work. At least, not entirely as expected. When I place TUniTreeNode Expand(Recurse: Boolean) in TUniForm.AfterShow, it works as it should but for example following code does not work:

TButton.OnClick(Sender...
begin
  UniTreeView.Items.Clear;
  
  { Add some items here }

  if UniTreeView.Items.Count > 0 then
    UniTreeView.Items.GetFirstNode.Expand(True);
end;

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...