refererence: Events, DropFiles updated

git-svn-id: svn://ultimatepp.org/upp/trunk@5702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-01-03 21:06:36 +00:00
parent cedc767288
commit 79fc0d8eff
4 changed files with 26 additions and 10 deletions

View file

@ -5,7 +5,7 @@ using namespace Upp;
struct DndTest : public TopWindow {
virtual void Paint(Draw &w);
virtual void DragAndDrop(Point p, PasteClip& d);
virtual bool Key(dword key, int count);
Vector<String> files;
DndTest();
@ -29,6 +29,16 @@ void DndTest::DragAndDrop(Point p, PasteClip& d)
}
}
bool DndTest::Key(dword key, int count)
{
if(key == K_CTRL_V) {
files = GetFiles(Ctrl::Clipboard());
Refresh();
return true;
}
return false;
}
DndTest::DndTest()
{
Title("I need files!");