mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
Syncing uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@2050 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
269853edf8
commit
2f6a4e0bf2
2 changed files with 19 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue