|
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 refers to an image window.
The following script sets the image cursor to a width of 100
pixels. Note that the center position is unchanged:
|
V:SetCursorWidth(100)
|
|
|
R =
V:GetCursorRect()
|
|
|
Printf("%lg, %lg", R.xmin,
R.xmax)
|
|
Related Topics
CImageView
CRect class
GetCursorRect
SetCursorRect
SetCursorExtent
SetCursorHeight
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|