ultimatepp/reference/FileSelLazyIcon/main.cpp
cxl d6ca5acf06 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@14278 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-04-08 12:59:41 +00:00

14 lines
270 B
C++

#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();
}