Home » U++ Library support » FileSel&FileList, Path » Preview of FileSel
Preview of FileSel [message #30077] |
Tue, 07 December 2010 13:12 |
sevenjay
Messages: 30 Registered: October 2008 Location: Taiwan
|
Member |
|
|
This is very useful, thanks.
I write an example to help someone quickly understand:
class PreviewImage : public ImageCtrl {
void SetData(const Value& val)
{
String path=val;
if(!path.IsEmpty())
{
SetImage(StreamRaster::LoadFileAny(~path));
Refresh();
}
}
};
FileSel fileSelIm;
PreviewImage img;
fileSelIm.Type("jpg file", "*.jpg");
fileSelIm.Preview(img);
|
|
|
|
Goto Forum:
Current Time: Fri Apr 26 21:18:14 CEST 2024
Total time taken to generate the page: 0.02765 seconds
|