diff --git a/upptst/DisplayPopup/DisplayPopup.upp b/upptst/DisplayPopup/DisplayPopup.upp new file mode 100644 index 000000000..5872304d3 --- /dev/null +++ b/upptst/DisplayPopup/DisplayPopup.upp @@ -0,0 +1,9 @@ +uses + CtrlLib; + +file + main.cpp; + +mainconfig + "" = "GUI"; + diff --git a/upptst/DisplayPopup/init b/upptst/DisplayPopup/init new file mode 100644 index 000000000..f14108489 --- /dev/null +++ b/upptst/DisplayPopup/init @@ -0,0 +1,4 @@ +#ifndef _DisplayPopup_icpp_init_stub +#define _DisplayPopup_icpp_init_stub +#include "CtrlLib/init" +#endif diff --git a/upptst/DisplayPopup/main.cpp b/upptst/DisplayPopup/main.cpp new file mode 100644 index 000000000..b7926f83b --- /dev/null +++ b/upptst/DisplayPopup/main.cpp @@ -0,0 +1,28 @@ +#include + +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(); +}