Cursor
A cursor is a small bitmap used for representing the mouse pointer. It
can be set for a particular subwindow, using window-set-cursor, as
a cue for what operations are possible in this window at this point in time.
At present, it is only possible to create a cursor in wxCLIPS from a fixed
range of cursor types.
cursor-create
cursor-delete
cursor-load-from-file
cursor-create
long ( cursor-create string stock-cursor-name)
Creates a stock cursor. stock-cursor-name must be one of the following:
- wxCURSOR_ARROW
- wxCURSOR_BULLSEYE
- wxCURSOR_CHAR
- wxCURSOR_CROSS
- wxCURSOR_HAND
- wxCURSOR_IBEAM
- wxCURSOR_LEFT_BUTTON
- wxCURSOR_MAGNIFIER
- wxCURSOR_MIDDLE_BUTTON
- wxCURSOR_NO_ENTRY
- wxCURSOR_PAINT_BRUSH
- wxCURSOR_PENCIL
- wxCURSOR_POINT_LEFT
- wxCURSOR_POINT_RIGHT
- wxCURSOR_QUESTION_ARROW
- wxCURSOR_RIGHT_BUTTON
- wxCURSOR_SIZENESW
- wxCURSOR_SIZENS
- wxCURSOR_SIZENWSE
- wxCURSOR_SIZEWE
- wxCURSOR_SIZING
- wxCURSOR_SPRAYCAN
- wxCURSOR_WAIT
- wxCURSOR_WATCH
- wxCURSOR_BLANK
- wxCURSOR_CROSS_REVERSE (X only)
- wxCURSOR_DOUBLE_ARROW (X only)
- wxCURSOR_BASED_ARROW_UP (X only)
- wxCURSOR_BASED_ARROW_DOWN (X only)
cursor-delete
long ( cursor-delete long cursor-id)
Deletes the given cursor.
cursor-load-from-file
long ( cursor-load-from-file string filename word bitmap-type
optional long hotspot-x optional long hotspot-y)
Loads a cursor from a file.
hotspot-x and hotspot-y are currently only used under Windows when loading from an
icon file, to specify the cursor hotspot relative to the top left of the image.
Under X, the permitted cursor types in bitmap-type are:
- wxBITMAP_TYPE_XBM Load an X bitmap file
Under Windows, the permitted types are:
- wxBITMAP_TYPE_CUR Load a cursor from a .cur cursor file (only if USE_RESOURCE_LOADING_IN_MSW
is enabled in wx_setup.h).
- wxBITMAP_TYPE_CUR_RESOURCE Load a Windows resource (as specified in the .rc file).
- wxBITMAP_TYPE_ICO Load a cursor from a .ico icon file (only if USE_RESOURCE_LOADING_IN_MSW
is enabled in wx_setup.h). Specify hotSpotX and hotSpotY.