ImageEn, unit iemview

TImageEnMView.ThumbSizeInfo

TImageEnMView.ThumbSizeInfo


Declaration


function ThumbSizeInfo(Data: TIEThumbSizeType): TPoint;


Description


Returns internal information about the current displayed size of thumbnail cells in the TImageEnView.

Data can be one of:
Value Description
itsImage Returns the size of the thumbnail image as displayed
itsCell Returns the size of the thumbnail cell (image, text and cell border)
itsOuter Returns the size of the thumbnail cell and its external spacing (image, text, cell border and horizontal/vertical border)


It takes into account:
- ThumbWidth and ThumbHeight
- Zoom
- LeftGap, RightGap, UpperGap and BottomGap
- HorizBorder and VertBorder


Example


// Calculate the amount of white space on right of thumbnails (assumes ietxCenterThumbnailColumn is not used)
rightSpace := ImageEnMView.ClientWidth - ImageEnMView.ThumbSizeInfo( itsCell ).X * ImageEnMView.CalcGridWidth();