Home » U++ Library support » U++ Library : Other (not classified elsewhere) » draganddrop does not work
Re: draganddrop does not work [message #49777 is a reply to message #49776] |
Tue, 01 May 2018 09:36 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
aftershock wrote on Mon, 30 April 2018 23:14Hi,
I have a class like this
class mainwindow : public DockWindow // public
{
virtual void DragAndDrop(Point p, PasteClip& d);
}
I have an application with docking.
Testing proved that DragAndDrop is not called...
Should it be called looking at examples?
What is the reason?
What would you do ?
Thanks.
Aftershock
Works for me
#include <CtrlLib/CtrlLib.h>
#include <Docking/Docking.h>
using namespace Upp;
struct MyApp : DockWindow {
virtual void DragAndDrop(Point p, PasteClip& d) {
if(AcceptFiles(d))
PromptOK(Join(GetFiles(d), "&"));
}
};
GUI_APP_MAIN
{
MyApp().Run();
}
Providing testcase and more info (like what is HostOS / compiler) would help....
[Updated on: Tue, 01 May 2018 09:37] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 28 05:55:28 CEST 2024
Total time taken to generate the page: 0.06067 seconds
|