Jump to content

UniTreeView MoveTo


eric

Recommended Posts

Hello,

 

1/ I am trying to move a node before or after using the code below.

but instead to move the node (nainsert) , it add the previous or next node  as a child (naAdd, naAddChild)

any idea or do you have a workaround ?

 

 with UniTreeView1.Selected do
  begin
    NextSibling := GetNextSibling;
    if NextSibling <> nil then
      NextSibling.MoveTo(UniTreeView1.Selected, naInsert);
  end;

 

 with UniTreeView1.Selected do  begin
    PrevSibling := GetPrevSibling;
    if PrevSibling <> nil then
      MoveTo(PrevSibling, naInsert);
  end;
 

 

eric

 

 

Link to comment
Share on other sites

On 11/15/2019 at 1:56 AM, eric said:

I am trying to move a node before or after using the code below.

but instead to move the node (nainsert) , it add the previous or next node  as a child (naAdd, naAddChild)

any idea or do you have a workaround ?

Hello,

Sorry, for the late reply.

Which build are you using?!

Can you make a simple testcase for this?

Link to comment
Share on other sites

  • 4 weeks later...

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