Vizard 8 » Command Index » Vizard modules » viz » <viz:mouse>.setCursor
8.1

<viz:mouse>.setCursor

Set the mouse cursor

<viz:mouse>.setCursor(  
cursor  
)  
cursor
A Windows cursor handle, a custom cursor filename, or one of the following standard system cursors:

Cursor

viz.mouse.CURSOR_APPSTARTING

Standard arrow and small hourglass

viz.mouse.CURSOR_ARROW

Standard arrow

viz.mouse.CURSOR_CROSS

Crosshair

viz.mouse.CURSOR_HAND

Hand

viz.mouse.CURSOR_HELP

Arrow and question mark

viz.mouse.CURSOR_IBEAM

I-beam

viz.mouse.CURSOR_NO

Slashed circle

viz.mouse.CURSOR_SIZEALL

Four-pointed arrow pointing north, south, east, and west

viz.mouse.CURSOR_SIZENESW

Double-pointed arrow pointing northeast and southwest

viz.mouse.CURSOR_SIZENS

Double-pointed arrow pointing north and south

viz.mouse.CURSOR_SIZENWSE

Double-pointed arrow pointing northwest and southeast

viz.mouse.CURSOR_SIZEWE

Double-pointed arrow pointing west and east

viz.mouse.CURSOR_UPARROW

Vertical arrow

viz.mouse.CURSOR_WAIT

Hourglass

Remarks

This command sets the mouse cursor for the Vizard window to the specified Windows cursor handle.

Return Value

None

Example

Using standard cursor:
# Use standard wait cursor
viz.mouse.setCursor(viz.mouse.CURSOR_WAIT)

Using custom cursor from file:
# Load cursor from file
viz.mouse.setCursor('custom.cur')

See also

<viz:mouse>.getCursor