FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cursors don't update until the mouse moves

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Tue Dec 18, 2007 3:44 am    Post subject: Cursors don't update until the mouse moves Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Wed Dec 19, 2007 3:09 am    Post subject: Re: Cursors don't update until the mouse moves Reply with quote

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
View user's profile Send private message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Wed Dec 19, 2007 3:21 am    Post subject: Re: Cursors don't update until the mouse moves Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group