Print Page | Close Window

Drag and drop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=259
Printed Date: 23 December 2024 at 2:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag and drop
Posted By: scadieux
Subject: Drag and drop
Date Posted: 02 December 2003 at 2:16pm

Hi all,

I need your insight on the following problem. In the application I want to write, I have an item browser (2d images, 3d images, etc.) on the right and multiple item viewers (2d viewer, 3d viewer) in the MDI client area. The item browser is implemented in a tree control since items are hierarchically organized.

I want the user to be able to select an item in the list, drag it and drop it in a viewer for display. The item should not be deleted from the browser, just associated to the viewer. What is the best way to implement this? I know how to make the viewers as drop targets, but is there an easy way with XTP tree control to enable drag and drop? If so, what type of data is dropped? Can I associate objects with each item in my tree control so that these objects get dropped instead of the item's caption text?

Thanks,

Simon Cadieux
ART Advanced Research Technologies

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net