Has anyone played around with changing the cursor under Windows? I can get
it to change, but it won't stick and sometimes won't change unless I call
SetCursor twice. If I move the mouse it changes back immediately. If I
don't, it will last about 3 seconds and then change back.

Here's the stripper version:

win-cursor: context [
    win-lib: load/library %user32.dll

    set-cursor: make routine! [
        hCursor     [integer!]
        return:     [integer!]
    ] win-lib "SetCursor"

    load-cursor: make routine! [
        hInstance   [integer!]
        CursorID    [integer!]
        return:     [integer!]
    ] win-lib "LoadCursorA"

]

print win-cursor/set-cursor win-cursor/load-cursor 0 32514
wait 5
print win-cursor/set-cursor win-cursor/load-cursor 0 32512
halt

Any thoughts are welcome.

--Gregg

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to