ImageEn, unit iemview

TImageEnMView.ThumbnailOptionsEx

TImageEnMView.ThumbnailOptionsEx


Declaration


property ThumbnailOptionsEx: TIEMThumbnailOptionsEx;


Description


Controls some advanced options for the display of icons and thumbnails.

Default: [ietxShowIconForUnknownFormat, ietxShowIconWhileLoading, ietxEnableInternalIcons, ietxStretchSmallImages];

Note: You will need to update the display after changing ThumbnailOptionsEx, e.g. by calling ImageEnMView1.Update;


Examples


// Use icons for unknown files
ImageEnMView1.ThumbnailOptionsEx := ImageEnMView1.ThumbnailOptionsEx + [ietxShowIconForUnknownFormat];

// Display all files (not only image files)
ImageEnMView1.FillFromDirectory('C:\', -1, true);


// Do not show shadows for any icon types
ImageEnMView1.ThumbnailOptionsEx := ImageEnMView1.ThumbnailOptionsEx - [ietxShowShadowForIcons, ietxShowShadowForFolders];

// Redraw the display
ImageEnMView1.Update();


// Create a single column of centered thumbnails
ImageEnMView1.GridWidth := 1;
ImageEnMView1.ThumbnailOptionsEx := ImageEnMView1.ThumbnailOptionsEx + [ietxCenterThumbnailColumn];
ImageEnMView1.Update();


// Show file list with icons
ImageEnMView1.ThumbnailOptionsEx := ImageEnMView1.ThumbnailOptionsEx + [ ietxOnlyShowIcons ];


// Give Thumbnail text a solid yellow background to the width of the thumbnail
ImageEnMView1.TextBackgroundStyle := bsSolid;
ImageEnMView1.TextBackgroundColor := clYellow;
ImageEnMView1.ThumbnailOptionsEx := ImageEnMView1.ThumbnailOptionsEx + [ietxDrawTextFullWidth];