From eacbbf295fbb143f4fecc09a57ee73d586ee21a9 Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 8 Jun 2014 17:56:24 +0000 Subject: [PATCH] reference: DropFiles as source git-svn-id: svn://ultimatepp.org/upp/trunk@7426 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- .../DragAndDropFiles/DragAndDropFiles.upp | 9 +++++++++ reference/DragAndDropFiles/main.cpp | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 reference/DragAndDropFiles/DragAndDropFiles.upp create mode 100644 reference/DragAndDropFiles/main.cpp 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 +{ +}