Contents Up Previous Next

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:


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:

Under Windows, the permitted types are: