diff --git a/reference/DragAndDropFiles/DragAndDropFiles.upp b/reference/DragAndDropFiles/DragAndDropFiles.upp new file mode 100644 index 000000000..78afc12a4 --- /dev/null +++ b/reference/DragAndDropFiles/DragAndDropFiles.upp @@ -0,0 +1,9 @@ +uses + CtrlLib; + +file + main.cpp; + +mainconfig + "" = "GUI SSE2"; + diff --git a/reference/DragAndDropFiles/main.cpp b/reference/DragAndDropFiles/main.cpp new file mode 100644 index 000000000..0f39d9cc1 --- /dev/null +++ b/reference/DragAndDropFiles/main.cpp @@ -0,0 +1,19 @@ +#include + +using namespace Upp; + +struct MyApp : TopWindow { + String path; + + virtual void Paint(Draw& w) { + w.DrawRect(GetSize(), SColorPaper()); + w.DrawText(10, 10, path); + } + + virtual void DragAndDrop(Point p, PasteClip& d); + +}; + +GUI_APP_MAIN +{ +}