|
-
Nov 7th, 2000, 03:04 AM
#1
Thread Starter
Hyperactive Member
I have a tv control which allows user to drag and drop
nodes to other nodes.
After they finish, how can I print the text according to
the sequence that they are displayed on the screen?
Also, can I use the indent property to knows the level
of indentation they are?
M Thanks
-
Nov 7th, 2000, 05:05 AM
#2
Member
Use FullPath property
For determining the level of indentation you could use the FullPath property of a node. Count the number of occurences of the PathSeperator property of the treeview.
I asume you want to rebuild the tree exactly the same way as you left it. Consider using the .Parent.Key property. Store the Parent.Key property of node and do this for every node. Set tvwChild and twvFist/Last with checking of a node has childs and store all node settings accordingly.
I myself use a database to store all data but this is not a good procedure if you want to distribute your application over the Internet. I know all root nodes and just add nodes as twvchild to the right relative key.
A mind is like a parachute, it has to open to let it work
www.2beesoft.com for Icon Manager with over 20.000 free icons
VB6 Ent. SP4, ASP, W2000/W98
-
Nov 7th, 2000, 08:48 PM
#3
Thread Starter
Hyperactive Member
Thanks Berthil,
I more or less can rebuild the tree now.
But I found another problem:
If I have 2 child to a parent, building the linking
from child to parent is OK, but how about the relative
position, ie. how can I know whether child A is before
child B?
Can you help?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|