Syncing uppdev

git-svn-id: svn://ultimatepp.org/upp/trunk@2050 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-02-11 20:05:10 +00:00
parent 269853edf8
commit 2f6a4e0bf2
2 changed files with 19 additions and 6 deletions

View file

@ -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();