Page 1 of 1
Slider Control
Posted: Wed Feb 20, 2013 2:49 am
by Esper8
It would be handy to be able to be able to control slider input values with the cursor keys as well as the mouse for fine tuning, eg cursor left and cursor down keys decreases value, cursor right and cursor down keys decrease value.
Just a thought.
Re: Slider Control
Posted: Wed Feb 20, 2013 3:54 am
by face_off
Hi Esper8
I too would like that, however at the moment (due to user request) the cursor "focus" is kept in the edit boxes to the left of the slider - and the text is all selected so when you stay typing, it overwrites the current text. In order to implement what you are asking I would need to disable the "overwrite" feature, and it would impact a lot of people I think. You know if there is only 1 slider, you can select the node (in the tree) and then use the mousewheel to move the slider?
Paul
Re: Slider Control
Posted: Wed Feb 20, 2013 3:26 pm
by Sighman
With the text box having focus could you not intercept the arrow keys before updating the text box? I don't know the poser API but most HMIs that I have programmed have some kind of PreviewKey event.
Re: Slider Control
Posted: Wed Feb 20, 2013 9:37 pm
by face_off
Then you wouldn't be able to use the left and right arrow to move around the text box.
Re: Slider Control
Posted: Thu Feb 21, 2013 2:08 am
by Sighman
But you can use the up and down keys. I think that would be acceptable.
Re: Slider Control
Posted: Thu Feb 21, 2013 6:17 am
by face_off
I have implemented the up/down arrow key solution. It is in 1.02s (awaiting delivering of 1.10 of the API before I release).
Paul
Re: Slider Control
Posted: Thu Feb 21, 2013 5:17 pm
by badmilk69
Coool!!!