diff --git a/uppdev/ArrayCtrlCtrl/main.cpp b/uppdev/ArrayCtrlCtrl/main.cpp index 00879ec2c..fd20acc26 100644 --- a/uppdev/ArrayCtrlCtrl/main.cpp +++ b/uppdev/ArrayCtrlCtrl/main.cpp @@ -15,12 +15,17 @@ struct App : TopWindow { bool CheckRow() { - if((int)a.Get(0) <= 0) { - Exclamation("Chyba"); - return false; - } + // if((int)a.Get(0) <= 0) { + // Exclamation("Chyba"); + // return false; + // } return true; } + + void Enter() + { + PromptOK("Enter!"); + } typedef App CLASSNAME; @@ -32,7 +37,9 @@ struct App : TopWindow { option.Top() <<= i; // option.Top() <<= THISBACK1(Do, i); } - a.SetLineCy(Draw::GetStdFontCy() + 8); + a.SetLineCy(10, 40); + option[10].SizePos(); + option[10].WhenEnter = THISBACK(Enter); a.WhenAcceptRow = THISBACK(CheckRow); Add(a.SizePos()); Sizeable(); diff --git a/uppdev/CoWork/main.cpp b/uppdev/CoWork/main.cpp index c9f114ec1..a6e7ea63a 100644 --- a/uppdev/CoWork/main.cpp +++ b/uppdev/CoWork/main.cpp @@ -77,6 +77,7 @@ void App::TestTree() { void App::TestDropInsert(int parent, int ii, PasteClip& d) { + /* if(AcceptInternal(d, "mytreedrag")) { tGroups2.InsertDrop(parent, ii, d); tGroups2.SetFocus(); @@ -87,6 +88,7 @@ void App::TestDropInsert(int parent, int ii, PasteClip& d) tGroups2.SetFocus(); return; } + */ } void App::TestDrag() @@ -123,7 +125,9 @@ App::App() /* extra stuff */ Add(tGroups2.LeftPos(0,100).VSizePos()); TestTree(); - PostCallback(THISBACK(Start)); +// PostCallback(THISBACK(Start)); + + /* ... */ } @@ -238,5 +242,7 @@ void App::Paint(Draw& w) GUI_APP_MAIN { + App app; + a App().Run(); }