Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with treeview
Message
 
 
To
29/07/2003 11:17:57
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00814541
Message ID:
00814557
Views:
7
Albert,
1. There is no functionality to expand an entire treeview. You have to write your own code to do it. The basic concept would be to add code to the Expand event to loop through the child nodes of the node being expanded and set their Expanded property to .T. as well. This would propagate the expand down the tree.

2. Yes you can use drag and drop. Doug Hennig wrote a white paper on this a few years ago. You can find it at http://www.stonefield.com/ in the Technical Papers section. It's called "Using Visual FoxPro ActiveX Controls".

HTH.

>Hello everybody !
>
>In my form i show structured data from a table in a treeview ! (building,floors,rooms,environment)
>(All records of the table have an objektid and an in_objektid. A floor is in a building,A room in in an floor, enviroment is in a room)
>
>Here my problems:
>a)
>I don't know how to set the behavior of the treeview to autoexpand !??
>(only the first node is shown and users have to click a lot to expand all nodes)
>
>b)
>Is it posible to do a drag and drop within the treeview ??
>I want to select an node(some environment for example,the objektid is part of the text and can be extracted) , then start draging the node to another node and do some coding when dropping.
>(the selected environment is now in the room where the user drops it)
>I'm to stupid to get this running.
>I don't know how to start draging a node(olecontrol.seleteditem.drag ?????)
>I don't know how to get some information about the node where the use drops??
>(I want to code something like: search the objektid of the draged node in my table and replace the in_objektid of the record with the objektid of the of the node where the user drops the selected node)
>
>Any help welcomed
>
>Best regards
>
>Albert
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform