TreeGadget: MoveGadgetItem()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

TreeGadget: MoveGadgetItem()

Post 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:
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: TreeGadget: MoveGadgetItem()

Post by RSBasic »

+1
Yes, its useful. Please also add to ListIconGadget.
Image
Image
RobertRioja
User
User
Posts: 71
Joined: Thu May 02, 2019 3:57 am
Location: USA
Contact:

Re: TreeGadget: MoveGadgetItem()

Post 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
ShadowStorm
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Feb 14, 2017 12:07 pm

Re: TreeGadget: MoveGadgetItem()

Post by ShadowStorm »

+1
I am French, I do not speak English.
My apologies for the mistakes.

I have sometimes problems of expression
I am sometimes quite clumsy, please excuse me and let me know.
Post Reply