Jump to content
Sign in to follow this  
chrisnic

Set mouse cursor position on a dialog control

Recommended Posts

As the title implies, i'm looking for a way to set the mouse position when opening a dialog control. Specifically I need the mouse to 'auto-center' and go back to [0.5, 0.5] whenever this control is opened. At the moment it seems to keep shifting from its previous position by a few hundred pixels each time (perhaps the width/height of the control?) and eventually it ends up at the edge of the screen.

Does anyone know of a trick that will allow this behaviour?

Thanks!

EDIT:

Ok, so after a more extensive google search I found setMousePosition :j:. Should this not be added to: https://community.bistudio.com/wiki/Category:Command_Group:_GUI_Control?

Edited by chrisnic

Share this post


Link to post
Share on other sites

Someone has already requested this for a new command, to set cursor in edit box, ad it has been approved, but it might take a while before we see it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×