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











SourceForge.net Logo

CtrlRangeLoop

 

Using range-based for loop over descendant widgets

 

 

main.cpp

 

#include <CtrlLib/CtrlLib.h>

 

using namespace Upp;

 

GUI_APP_MAIN

{

    TopWindow w;

    EditString a, b;

    w << a << b;

    a <<= "Hello ";

    b <<= "world!";

 

    String h;

    for(Ctrl& q : w)

        h << ~q;

    

    DUMP(h);

}

 

 

 

 

Do you want to contribute?