mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@15501 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c70a9a6799
commit
138c04e7cf
1 changed files with 4 additions and 4 deletions
|
|
@ -10,15 +10,15 @@ struct App : TopWindow {
|
|||
typedef App CLASSNAME;
|
||||
|
||||
App() {
|
||||
tree1.WhenEdited << [=](const Value& v) { // using default EditString
|
||||
tree1.WhenEdited << [=](int id, const Value& v) { // using default EditString
|
||||
if(tree1.IsCursor())
|
||||
tree1.Set(tree1.GetCursor(), v);
|
||||
tree1.Set(id, v);
|
||||
};
|
||||
|
||||
tree2.Editor(int_editor);
|
||||
tree2.WhenEdited << [=](const Value& v) {
|
||||
tree2.WhenEdited << [=](int id, const Value& v) {
|
||||
if(tree2.IsCursor())
|
||||
tree2.Set(tree2.GetCursor(), v);
|
||||
tree2.Set(id, v);
|
||||
};
|
||||
|
||||
split << tree1 << tree2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue