ImageEn, unit iemview

TImageEnMView.ThumbWidth

TImageEnMView.ThumbWidth


Declaration

property ThumbWidth: integer;


Description

Specifies the width of the thumbnails displayed in the TImageEnView.
If ThumbWidth = -1, it will be auto-calculated to fill the width of the control.

Note: This is the width of the thumbnail frame (when the Style is iemsFlat). The thumbnail image itself will be ThumbWidth less LeftGap and RightGap . See ThumbSizeInfo for actual display size. Use SetThumbnailSize to set the display size of the image itself.

TImageEnMView Default: 100;
TImageEnFolderMView Default: 130
TImageEnLayerMView Default: 120


Demos

Demo  Demos\Multi\Multiview2\Multiview2.dpr


Example

// Make thumbnails 120 x 100;
ImageEnMView1.ThumbWidth := 120;
ImageEnMView1.ThumbHeight := 100;

// Fit thumbnails to width of the control
ImageEnMView1.ThumbWidth := -1;
ImageEnMView1.ThumbHeight := -1;


See Also

- ThumbHeight
- SetThumbnailSize
- ThumbSizeInfo