TImageEnMView.CalcGridWidth
Declaration
function CalcGridWidth(): Integer;
Description
Returns the number of columns displayed in the grid. This is mainly used when the column count is automatically calculated (i.e. when
GridWidth = -1).
// Calculate the amount of white space on right of thumbnails (assumes ietxCenterThumbnailColumn is not used)
rightSpace := ImageEnMView.ClientWidth - ImageEnMView.ThumbSizeInfo( itsCell ).X * ImageEnMView.CalcGridWidth();