Next: ok?
Up: Class Reference
Previous: set-string
Superclass: wx:object%
A cursor is a small bitmap usually used for denoting where the mouse
pointer is, with a picture that might indicate the interpretation of a
mouse click.
A single cursor object may be used in many windows (any subwindow type).
Each window has an individual cursor setting; when the mouse pointer is
focused into a window, the pointer picture is changed to match the setting
of the current window.
The wx:cursor% object wx:hourglass-cursor is
predefined.
- (make-object wx:cursor% name flags hot-spot-x hot-spot-y) -> wx:cursor% object
name : string
flags : small integer
hot-spot-x = 0 : small integer
hot-spot-y = 0 : small integer
Creates a cursor using a bitmap. The name and flags arguments
are as in
load-file, but some additional flag values are available:
- wx:bitmap-type-cur -- load a cursor from a ``.cur'' cursor file (Windows)
- wx:bitmap-type-cur-resource -- load a cursor resource (Windows, MacOS)
- wx:bitmap-type-ico -- load a cursor from a ``.ico'' icon file (Windows)
- wx:bitmap-type-ico-resource -- load a cursor from a icon resource (Windows)
The hot-spot-x and hot-spot-y arguments determine the
focus point of the cursor within the cursor picture, relative to the
top-left of the picture.
- (make-object wx:cursor% id) -> wx:cursor% object
id : small integer
Creates a cursor using a stock cursor id, one of the follwing:
- wx:const-cursor-arrow
- wx:const-cursor-bullseye
- wx:const-cursor-char
- wx:const-cursor-cross
- wx:const-cursor-hand
- wx:const-cursor-ibeam
- wx:const-cursor-left-button
- wx:const-cursor-magnifier
- wx:const-cursor-middle-button
- wx:const-cursor-no-entry
- wx:const-cursor-paint-brush
- wx:const-cursor-pencil
- wx:const-cursor-point-left
- wx:const-cursor-point-right
- wx:const-cursor-question-arrow
- wx:const-cursor-right-button
- wx:const-cursor-sizenesw
- wx:const-cursor-sizens
- wx:const-cursor-sizenwse
- wx:const-cursor-sizewe
- wx:const-cursor-sizing
- wx:const-cursor-spraycan
- wx:const-cursor-wait
- wx:const-cursor-watch
Methods:
PLT