CImageView:SetCursorStyle

CImageView:SetCursorWidth


The SetCursorWidth method sets the x range, or width, of the image cursor in the CImageView. This sets the number of columns, measured in pixels. The center position is not affected.

Syntax

bResult = CImageView:SetCursorWidth( nWidth )

    ThenWidth value specifies the cursor width, 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 width of 100 pixels. Note that the center position is unchanged:

 

V:SetCursorExtent(100,800,150,620.5)

-- set a cursor size

V:SetCursorWidth(100)

-- set the image cursor

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

-- Result: [400:500, 150:620.5]

Related Topics

CImageView , GetCursorRect , SetCursorRect , SetCursorExtent , SetCursorHeight