Print Page | Close Window

How to drag n drop in a report 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=19385
Printed Date: 16 November 2024 at 2:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to drag n drop in a report control
Posted By: apautrot
Subject: How to drag n drop in a report control
Date Posted: 05 January 2012 at 5:37am
I was trying to do a simple drag n drop in a report control, but I had to reverse engineer the report control code to understand what's done, how to work with it, discover notifications messages, structures and their use. 

An example :
- There is no mention of XTP_NM_REPORT_DRAGOVER aside the XTP_NM_REPORT_BEGINDRAG, XTP_NM_REPORT_DROP or XTP_NM_REPORT_HASVALIDDROPTYPE. 
- XTP_NM_REPORT_HASVALIDDROPTYPE is commented as to be "Indicates the user dropped records to report control." This is false, this is not what is it.
- The #define DROPEFFECT_CANCEL   (5) in file XTPCustomizeTools.h f**k up the value that should be set in XTP_NM_REPORTDRAGDROP in XTP_NM_REPORT_DRAGOVER notification to forbid the drop. We have to return 0 instead of using the define DROPEFFECT_CANCEL which is so badly redefined.




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