GetScrollDirectionSize Method

Example-VB

Determines what the control size has to be, in the scrolling dimension, to display a specified number of thumbnails.

Available With

Ö Imaging for Windows Professional Edition V1.0, V1.1, and V2.0
Ö Imaging for Windows 95 and 98
Ö Imaging for Windows NT 4.0

Applies To

Image Thumbnail control

Syntax

object.GetScrollDirectionSize(ScrollDirectionThumbCount,NonScrollDirectionThumbCount,NonScrollDirectionSize,ScrollBar)

Arguments

Parameter Data Type Description

ScrollDirectionThumbCount Long The number of thumbnail boxes desired in the scrolling direction
NonScrollDirectionThumbCount Long The number of thumbnail boxes desired in the non-scrolling direction
NonScrollDirectionSize Long The size of the control’s area, in pixels, in the non-scrolling dimension for which a corresponding scroll direction size is desired
ScrollBar Boolean Indicates whether or not the size specified for NonScrollDirectionSize allows space for a scroll bar

True Allows space for a scroll bar
False Does not allow space for a scroll bar

Return Value

Long

Returns the control size, in pixels, needed to accommodate the number of thumbnail boxes specified by the parameter ScrollDirectionThumbCount in the scrolling direction.

Remarks

If NonScrollDirectionSize is determined by first calling the GetMaximumSize and GetMinimumSize methods, GetScrollDirectionSize can calculate the size and scrolling direction required to display a specified number of thumbnails.

The value of the argument NonScrollDirectionThumbCount must be the same value passed as the argument ThumbCount to the GetMaximumSize and GetMinimumSize methods.

The value of the argument ScrollBar must be the same in the GetMaximumSize, GetMinimumSize, and GetScrollDirectionSize methods.