Data Access Worldwide Knowledge Base

Article ID 2116
Article Title EXAMPLE: Drag And Drop in a TreeView
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2116
KBase Category VDF11
Date Created 04/30/2005
Last Edit Date 05/02/2005


Article Text
QUESTION:
Does anyone have a drag & drop example using a treeview?

ANSWER:
The enclosed files demonstrate how you can drag a treeview item to a different location in the treeview. It will make a nice capture of the item while dragging. All functions are documented in the package and in MSDN.

To use this:
- Unzip the enclosure
- Register the class cDragAndDropTreeView in the Studio classlist
- Open the view as source code
- Register the view by clicking the button to register a view for the Studio
- Compile and run the example

Note:
- See what changes if you use the radio control that tells the treeview what to do on drop
- See what happens if you hide the mouse cursor while dragging.



Class and component require VDF11 installed.


Contributed By:
Vincent Oorsprong
Company: Data Access Worldwide
email: vincent.oorsprong@dataaccess.eu
Web Site: http://www.dataaccess.eu

Web Links Related to this Article
File DragAndDropTreeViewDemo.Zip
URL=http://www.dataaccess.com/KBasePublic/Files/2116.DragAndDropTreeViewDemo.Zip


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.