mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-04 22:03:29 -06:00
refererence: Events, DropFiles updated
git-svn-id: svn://ultimatepp.org/upp/trunk@5702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
cedc767288
commit
79fc0d8eff
4 changed files with 26 additions and 10 deletions
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue