git-svn-id: svn://ultimatepp.org/upp/trunk@8893 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-09-06 05:27:10 +00:00
parent 839891e6fb
commit d417e0a3f9
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,9 @@
uses
CtrlLib;
file
main.cpp;
mainconfig
"" = "GUI";

4
upptst/DisplayPopup/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _DisplayPopup_icpp_init_stub
#define _DisplayPopup_icpp_init_stub
#include "CtrlLib/init"
#endif

View file

@ -0,0 +1,28 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
ArrayCtrl list;
list.AddColumn();
list.Add("Simple");
list.Add("Long " + String('X', 200));
list.Add(AttrText("High " + String('X', 200)).SetFont(StdFont(StdFont().GetHeight() * 6 / 5)));
String s = String('0', 200);
for(int i = 0; i < 9; i++) {
s << "\n" << String('1' + i, 200);
list.Add(s);
}
String t = String('0', 20000);
for(int i = 0; i < 9; i++) {
t << "\n" << String('1' + i, 20000);
list.Add(t);
}
for(int i = 0; i < 200; i++)
s << "\n" << String('1' + i, 200);
list.Add("Very tall\n" + s);
TopWindow win;
win.Add(list.SizePos());
win.Run();
}