mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
reference: ArrayCtrlCreateCtrl
git-svn-id: svn://ultimatepp.org/upp/trunk@7082 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
04f0a5f535
commit
4e6be6e382
3 changed files with 39 additions and 0 deletions
24
reference/ArrayCtrlCreateCtrl/main.cpp
Normal file
24
reference/ArrayCtrlCreateCtrl/main.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
ArrayCtrl list;
|
||||
list.Appending().Removing();
|
||||
list.AddColumn("Text");
|
||||
list.AddColumn("Option");
|
||||
|
||||
for(int i = 0; i < 300; i++) {
|
||||
list.Add(AsString(i));
|
||||
list.CreateCtrl<EditString>(i, 0);
|
||||
list.CreateCtrl<Option>(i, 1, false).SetLabel("Option " + AsString(i));
|
||||
}
|
||||
|
||||
list.SetLineCy(Draw::GetStdFontCy() + 8);
|
||||
|
||||
TopWindow app;
|
||||
app.Add(list.SizePos());
|
||||
app.Sizeable();
|
||||
app.Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue