Page 1 of 1

TreeGadget: MoveGadgetItem()

Posted: Thu Feb 14, 2019 3:27 pm
by Marc56us
Hello,

TreeGadget is a good gadget and works fine, but is not easy to manage. Adding and deleting elements is easy, but moving them is not, especially if the Item contains sub-branches. I think it would be interesting to add a new function related to move items.
There are many examples on the forum, but I think it would be good for the professional side of PB to add a native feature.

:idea: A function can be like this:

MoveGadgetItem()

Result = MoveGadgetItem(#Gadget, Position_From, Position_To [,Flags])

Flags (optional)

#PB_Tree_After : Item will be moved AFTER Position_To (default)
#PB_Tree_Above : Item will be moved ABOVE Position_To
#PB_Tree_SubTree : All sub tree will be move also (default)

All defined properties should follow (ItemData(), Color, State (expand/collapse), Icon, CheckBox status)

How about that ?
:?: :wink:

Re: TreeGadget: MoveGadgetItem()

Posted: Thu Apr 18, 2019 11:22 am
by RSBasic
+1
Yes, its useful. Please also add to ListIconGadget.

Re: TreeGadget: MoveGadgetItem()

Posted: Tue Jun 11, 2019 9:23 pm
by RobertRioja
This is a great idea. Many times I wanted to move tree branches but could not. I hope it is implemented.
There are many other tree functions that other compilers have, but are missing from PB.
Robert

Re: TreeGadget: MoveGadgetItem()

Posted: Wed Jun 12, 2019 12:39 am
by ShadowStorm
+1