mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-03 06:12:43 -06:00
reorganizing repo
git-svn-id: svn://ultimatepp.org/upp/trunk@9206 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7d17505cfe
commit
e3e8d627f5
3840 changed files with 0 additions and 1161578 deletions
|
|
@ -1,52 +0,0 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct App : TopWindow {
|
||||
Array<EditInt> option;
|
||||
ArrayCtrl a;
|
||||
|
||||
void Do(int ii)
|
||||
{
|
||||
option[ii].SetFocus();
|
||||
for(int i = 0; i < option.GetCount(); i++)
|
||||
option[i].Enable(i == ii || option[ii]);
|
||||
}
|
||||
|
||||
bool CheckRow()
|
||||
{
|
||||
// if((int)a.Get(0) <= 0) {
|
||||
// Exclamation("Chyba");
|
||||
// return false;
|
||||
// }
|
||||
return true;
|
||||
}
|
||||
|
||||
void Enter()
|
||||
{
|
||||
PromptOK("Enter!");
|
||||
}
|
||||
|
||||
typedef App CLASSNAME;
|
||||
|
||||
App() {
|
||||
a.AddColumn("Option");
|
||||
for(int i = 0; i < 300; i++) {
|
||||
a.Add(i & 4);
|
||||
a.SetCtrl(i, 0, option.Add());
|
||||
option.Top() <<= i;
|
||||
// option.Top() <<= THISBACK1(Do, i);
|
||||
}
|
||||
a.SetLineCy(10, 40);
|
||||
option[10].SizePos();
|
||||
option[10].WhenEnter = THISBACK(Enter);
|
||||
a.WhenAcceptRow = THISBACK(CheckRow);
|
||||
Add(a.SizePos());
|
||||
Sizeable();
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
App().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue