LIBRARY rexxgui
DO
FUNCDEF("LoadStdCursor", "void, void, 32u", "user32", "LoadCursor")
FUNCDEF("SetCursor", "void, void", "user32")
CATCH FAILURE
CONDITION("M")
RETURN
END
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
imagenumber = 32512
presets.1 = 32512
presets.2 = 32513
presets.3 = 32514
presets.4 = 32515
presets.5 = 32516
presets.6 = 32642
presets.7 = 32643
presets.8 = 32644
presets.9 = 32645
presets.10 = 32646
presets.11 = 32648
presets.12 = 32650
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_mousemove:
newcursor = loadstdcursor(, imagenumber)
IF newcursor \== 0 THEN
setcursor(newcursor)
RETURN ""
wm_click_mouseshapes:
guigetctlvalue("MouseShapes")
IF EXISTS("MouseShapes") THEN
imagenumber = presets.mouseshapes
RETURN |