.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@10274 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-10-05 18:59:04 +00:00
parent 8b96b11e8c
commit c8dbd68e1d
18 changed files with 55 additions and 67 deletions

View file

@ -56,19 +56,17 @@ struct App : TopWindow {
b.RemoveSelection();
}
typedef App CLASSNAME;
App() {
a.AddColumn("You can paste the text here too");
a.MultiSelect();
a.WhenDropInsert = THISBACK(DnDInsert);
a.WhenDrop = THISBACK(DnD);
a.WhenDrag = THISBACK(Drag);
a.WhenDropInsert = [=](int line, PasteClip& d) { DnDInsert(line, d); };
a.WhenDrop = [=] (PasteClip& d) { DnD(d); };
a.WhenDrag = [=] { Drag(); };
b.AddColumn("Roman numbers");
b.MultiSelect();
b.WhenDropInsert = THISBACK(DnDInsertB);
b.WhenDrag = THISBACK(DragB);
b.WhenDropInsert = [=](int line, PasteClip& d) { DnDInsertB(line, d); };
b.WhenDrag = [=] { DragB(); };
Add(s.Horz(a, b));
for(int i = 0; i < 200; i++) {