OK, I have been reading threads for hours and found lots of helpful ideas about treeview and drag/drop. However, I am trying to use the two in conjucntion with each other. I want to create a treeview of say a school with departments then subdepartmnets then rooms then the equipment in these rooms. Something like this:
School School
|-Science '-Departments
| |+Biology '-SubDepartments
| '-Chemistry '-Rooms
| |+Lab '-Equipment
| |+Storage
| '-Office
| |-Desk
| '-Chair
|
|+Mathmatics
|+Language Arts
'+Liberal Arts
Now take this tree and use it as a template to drag from. Make a duplicate tree that has empty nodes to drop to. I'd like to be able to view these trees in the same form and drag a COPY of any node from the template to the empty tree structure. As I drag this data it needs to bring any child node with it. Using the example above, say I drag "Chemistry", I need it to drag "Lab", "Storage", and "Office" as well as any levels down. The data the nodes pulls from is in a table or query. I will also want to be able to add and delete from the treeview.
The point behind all of this is to allow the user to visual design an school layout rather than forms with multiple subforms.
Please advise,
Turbo
"There is a fine line between confidence and conceit" - Ken Mai
School School
|-Science '-Departments
| |+Biology '-SubDepartments
| '-Chemistry '-Rooms
| |+Lab '-Equipment
| |+Storage
| '-Office
| |-Desk
| '-Chair
|
|+Mathmatics
|+Language Arts
'+Liberal Arts
Now take this tree and use it as a template to drag from. Make a duplicate tree that has empty nodes to drop to. I'd like to be able to view these trees in the same form and drag a COPY of any node from the template to the empty tree structure. As I drag this data it needs to bring any child node with it. Using the example above, say I drag "Chemistry", I need it to drag "Lab", "Storage", and "Office" as well as any levels down. The data the nodes pulls from is in a table or query. I will also want to be able to add and delete from the treeview.
The point behind all of this is to allow the user to visual design an school layout rather than forms with multiple subforms.
Please advise,
Turbo
"There is a fine line between confidence and conceit" - Ken Mai