mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@10274 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8b96b11e8c
commit
c8dbd68e1d
18 changed files with 55 additions and 67 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue