cursor Property

Sets or returns a String that represents how to display the mouse pointer as it moves over a specified object when a page is displayed in the browser window.

expression.cursor

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

The String for the cursor property can be one of the following values:

Value Description
all-scroll   Internet Explorer 6 and later. Arrows pointing up, down, left, and right with a dot in the middle, indicating that the page can be scrolled in any direction.
auto Default. Browser determines which cursor to display based on the current context.
col-resize   Internet Explorer 6 and later. Arrows pointing left and right with a vertical bar separating them, indicating that the item/column can be resized horizontally.
crosshair Simple cross hair.
default Platform-dependent default cursor; usually an arrow.
hand Hand with the first finger pointing up, as when the user moves the pointer over a link.
help Arrow with question mark, indicating help is available.
move Crossed arrows, indicating something is to be moved.
no-drop   Internet Explorer 6 and later. Hand with a small circle with a line through it, indicating that the dragged item cannot be dropped at the current cursor location.
not-allowed   Internet Explorer 6 and later. Circle with a line through it, indicating that the requested action will not be carried out.
pointer Internet Explorer 6 and later. Hand with the first finger pointing up, as when the user moves the pointer over a link. Identical to hand.
progress   Internet Explorer 6 and later. Arrow with an hourglass next to it, indicating that a process is running in the background. User interaction with the page is unaffected.
row-resize   Internet Explorer 6 and later. Arrows pointing up and down with a horizontal bar separating them, indicating that the item/row can be resized vertically.
text Editable text; usually an I-bar.
url(uri)   Internet Explorer 6 and later. Cursor is defined by the author, using a custom Uniform Resource Identifier (URI), such as url('mycursor.cur'). Cursors of type .CUR and .ANI are the only supported cursor types.
vertical-text   Internet Explorer 6 and later. Editable vertical text, indicated by a horizontal I-bar.
wait Hourglass or watch, indicating that the program is busy and the user should wait.
*-resize Arrows, indicating an edge is to be moved; the asterisk (*) can be N, NE, NW, S, SE, SW, E, or W—each representing a compass direction.

Example

The following example sets the mouse pointer for all images in the specified object to display as a hand when the mouse is positioned over the image and the page is displayed in a browser window.

Sub ChangeMousePointerForImages(objDoc As FPHTMLDocument)
    Dim objImage As FPHTMLImg

    For Each objImage In objDoc.images
        objImage.Style.cursor = "hand"
    Next
End Sub

Use the following example to call the preceding subroutine.

Sub CallChangeMousePointerForImages()
    Call ChangeMousePointerForImages(ActiveDocument)
End Sub

Applies to | FPHTMLStyle Object | IFPStyleState Object | IHTMLRuleStyle Object | IHTMLStyle Object