Can't drag a row within 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=22491
Printed Date: 28 April 2024 at 9:33pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Can't drag a row within report control
Posted By: brianh
Subject: Can't drag a row within report control
Date Posted: 16 December 2014 at 12:23pm
Hi,
I have a report control in a dialog, and I have called EnableDragDrop("myformat", xtpReportAllowDrag | xtpReportAllowDrop) to enable drag and drop functionality.
When I drag a row it calls CXTPReportControl::BeginDrag() and starts the drag, but it never calls CXTPReportControl::OnDragOver() and never allows me to drop the row within the report.
Do I need to do something else to enable this functionality?
Thanks,
Brian
|
Replies:
Posted By: brianh
Date Posted: 16 December 2014 at 12:40pm
I should have mentioned I'm using version 16.2.3 with MFC.
|
Posted By: olebed
Date Posted: 17 December 2014 at 4:24am
Hello Brian,
Maybe you forget to use notifications. You can see they in our sample
DragDrop sample can be runed from menu of
ReportSample
-> "REPORT CONTROL" -> "Quality assurance" -> "Drag & Drop"
toolkitpro\Samples\ReportControl\ReportSample\TestDragDropDlg.cpp from line 54
BEGIN_MESSAGE_MAP(CTestDragDropDlg, CDialog) //{{AFX_MSG_MAP(CTestDragDropDlg) ... ON_NOTIFY(XTP_NM_REPORT_BEGINDRAG, IDC_REPORT1, OnReportBeginDrag1) ON_NOTIFY(XTP_NM_REPORT_DROP, IDC_REPORT2, OnReportDrop2) //}}AFX_MSG_MAP END_MESSAGE_MAP() |
Unfortunately it is not clear what exactly is going wrong. Can you please provide sample application so that we could debug it.
Regards, Oleksandr Lebed
|
|