Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

LambdaConvert

 

Demostrates the use of LambdaConvert - Convert specified as lambda

 

 

main.cpp

 

#include <CtrlLib/CtrlLib.h>

 

using namespace Upp;

 

GUI_APP_MAIN

{

    ArrayCtrl list;

    list.AddColumn().SetConvert(LambdaConvert([](const Value& v) { return FormatIntRoman(v); }));

    for(int i = 0; i < 100; i++)

        list.Add(i);

 

    TopWindow win;

    win << list.SizePos();

    win.Run();

}

 

 

 

 

Do you want to contribute?