#include <CtrlLib/CtrlLib.h> using namespace Upp; struct MyApp : TopWindow { ArrayCtrl array; MyApp() { Sizeable().Zoomable().CenterScreen().SetRect(0, 0, 800, 600); Add(array.SizePos()); array.AddColumn("Index").WithLined([=](int i, One<Ctrl>& c){ if(i % 2 == 0) c.Create<DropDate>(); else { DropList& l = c.Create<DropList>(); l.Add("a").Add("b").Add("c"); } }); for(int i = 0; i < 10; i++) { array.Add(i); } } }; GUI_APP_MAIN { MyApp().Run(); }
[Updated on: Thu, 18 February 2021 19:09]
Report message to a moderator