Print Page | Close Window

How to drop on external control?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16096
Printed Date: 28 September 2024 at 6:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to drop on external control?
Posted By: maxxan
Subject: How to drop on external control?
Date Posted: 28 January 2010 at 10:30am
Hi!

What I want to do is to select some rows in the report view and drag them and drop on a tree control.

I've inhereted a tree control and started to implement OnDrop and get the data with the correct CLIPFORMAT.

The problem: I don't want the text of the rows, but rather the item data (DWORDs) of the records. When enabling drag/drop I add the xtpReportDontDropAsText flag.
But how do I access the selected rows in OnDrop in the tree control to read from the records (or something like that to get the item data in the record)? What is dropped when using the xtpReportDontDropAsText flag?

Any ideas?



Replies:
Posted By: hachem
Date Posted: 18 January 2014 at 3:23pm
I am in the same situation. I suppose I need to read the records from the COleDataObject object in the OnDrop() method in the tree. But I don't know how to do that. Have you figure it out?



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