mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
reference: DropFiles as source
git-svn-id: svn://ultimatepp.org/upp/trunk@7426 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
db9f38deb7
commit
eacbbf295f
2 changed files with 28 additions and 0 deletions
9
reference/DragAndDropFiles/DragAndDropFiles.upp
Normal file
9
reference/DragAndDropFiles/DragAndDropFiles.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI SSE2";
|
||||
|
||||
19
reference/DragAndDropFiles/main.cpp
Normal file
19
reference/DragAndDropFiles/main.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
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
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue