Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Can't drag a row within report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can't drag a row within report control

 Post Reply Post Reply
Author
Message
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Topic: Can't drag a row within report control
    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
Back to Top
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2014 at 12:40pm
I should have mentioned I'm using version 16.2.3 with MFC.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.