mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@8893 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
839891e6fb
commit
d417e0a3f9
3 changed files with 41 additions and 0 deletions
9
upptst/DisplayPopup/DisplayPopup.upp
Normal file
9
upptst/DisplayPopup/DisplayPopup.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
4
upptst/DisplayPopup/init
Normal file
4
upptst/DisplayPopup/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _DisplayPopup_icpp_init_stub
|
||||
#define _DisplayPopup_icpp_init_stub
|
||||
#include "CtrlLib/init"
|
||||
#endif
|
||||
28
upptst/DisplayPopup/main.cpp
Normal file
28
upptst/DisplayPopup/main.cpp
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue