.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@9674 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-04-06 10:16:45 +00:00
parent 186a5ce311
commit 1d789d9df6
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,11 @@
description "Demontrates 'SpanWideCells' mode of ArrayCtrl\377";
uses
CtrlLib;
file
main.cpp;
mainconfig
"" = "GUI";

View file

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

View file

@ -0,0 +1,20 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
ArrayCtrl a;
a.AddColumn("A", 100);
a.AddColumn("B", 100);
a.HeaderObject().Absolute();
a.SpanWideCells();
a.Add("This is very very long line...");
a.Add("This is long line, but the next column is not empty", 12);
a.Add("Short line");
TopWindow win;
win.Add(a.SizePos());
win.Run();
}