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











SourceForge.net Logo

FileSelLazyIcon

 

Demostrates FileSel features that uses separate thread to resolve file image

 

 

main.cpp

 

#include <CtrlLib/CtrlLib.h>

#include <plugin/jpg/jpg.h>

 

using namespace Upp;

 

GUI_APP_MAIN

{

    FileSel fs;

    fs.AllFilesType();

    fs.WhenIconLazy = [](const String& path, Image& result) {

        result = StreamRaster::LoadFileAny(path);

    };

    fs.ExecuteOpen();

}

 

 

 

 

Do you want to contribute?