View previous topic :: View next topic |
Author |
Message |
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Tue Dec 18, 2007 3:44 am Post subject: Cursors don't update until the mouse moves |
|
|
If you set the cursor with something like
Code: |
parent_control.cursor = Cursors.defaultCursor;
|
The change doesn't take effect until the mouse is moved.
I found a workaround:
Code: |
parent_control.cursor.position = parent_control.mousePosition;
|
but it would be nice if the library could do the right thing and update automatically when a cursor is set. Perhaps just by putting the line above in the cursor setting code, if there's no better way. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Wed Dec 19, 2007 3:09 am Post subject: Re: Cursors don't update until the mouse moves |
|
|
You have a point, I'll see about having it update immediately.
The more appropriate way to set the cursor immediately is to use Code: | Cursor.current = Cursors.defaultCursor; |
|
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Wed Dec 19, 2007 3:21 am Post subject: Re: Cursors don't update until the mouse moves |
|
|
Chris Miller wrote: | You have a point, I'll see about having it update immediately.
The more appropriate way to set the cursor immediately is to use Code: | Cursor.current = Cursors.defaultCursor; |
|
That doesn't seem to do anything for me. |
|
Back to top |
|
|
|