1. [Win32lib] Modify a TreeView item's parent
Hello,
i'm looking for a simple way to change the parent of a treeview item.
For example, i would like to change a treeview like this
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
into this one
Item 1
Item 2
Item 5
Item 6
Item 3
Item 4
setting the parent of Item 3 to Item 4.
Is it possible without deleting and re-making the whole treeview?
Thanks,
Papinic
2. Re: [Win32lib] Modify a TreeView item's parent
> posted by: Papinic <papinic at yahoo.com>
>
> Hello,
>
> i'm looking for a simple way to change the parent of a treeview item.
> For example, i would like to change a treeview like this
> Item 1
> Item 2
> Item 3
> Item 4
> Item 5
> Item 6
>
> into this one
> Item 1
> Item 2
> Item 5
> Item 6
> Item 3
> Item 4
>
> setting the parent of Item 3 to Item 4.
> Is it possible without deleting and re-making the whole treeview?
>
> Thanks,
>
> Papinic
>
Papinic,
Not sure if this will help or not, but you might take a look at
"tveditx1.exw", by Euman, if it's still included as a demo with Win32Lib; it
does some editing of a tree view which might give you some idea how to
change tv item parent.
Dan Moyer