Print Page | Close Window

Drag and drop issue

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=23977
Printed Date: 30 June 2024 at 6:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag and drop issue
Posted By: ericchubb
Subject: Drag and drop issue
Date Posted: 21 April 2020 at 12:39pm
Hi there

I have a report control placed inside a dialog. I would like to be able to drag an arbitrary file from Windows explorer into the control, and let the drop handling code decide if the filename can be added to the report control.

I've called "EnableDragDrop(_T("TestDragDrop"), xtpReportAllowDrop) on the report control from within the parent dialog, and I've mapped XTP_NM_REPORT_DROP to a function within the parent dialog. "TestDragDrop" hasn't been registered as a CLIPFORMAT in my app's InitInstance, but in the ReportSample it isn't either.

However, when I try and drag a file to the control, the mouse pointer just becomes a circle with a line through it, indicating dropping files into the control isn't allowed.

If someone could help me with what I might be doing wrong I'd appreciate it.


-------------
Eric



Product: Xtreme Toolkit Version 22.0

Platform: Windows 11 (64bit) -

Language: Visual C++ 2022 /C# .NET 2/3.5/4/5/6/7



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