CImageView:SetCursorExtent CImageView:SetCursorPos

CImageView:SetCursorHeight


The SetCursorHeight method sets the y range, or height, of the image cursor in the CImageView. This sets the number of rows, measured in pixels. The center position is not affected.

Syntax

bResult = CImageView:SetCursorHeight( nHeight )

    ThenHeight value specifies the cursor height, measured in pixels.

    On success, the method returns true.

    On failure, false is returned.

Example

Assume that a CImageView object named V exists and wraps an image window. The following script fragment sets the image cursor to a height of 50 pixels. Note that the center position is unchanged:

 

V:SetCursorExtent(100,800,100,300)

-- set a cursor size

V:SetCursorHeight( 50 )

-- set the image cursor

Printf("%lg:%lg, %lg:%lg", R:Get())

-- Result: [100:800, 175:225]

Related Topics

CImageView , GetCursorRect , SetCursorRect , SetCursorExtent , SetCursorWidth