On 5 Feb 2009, at 17:42, <[email protected]> <[email protected]> wrote:
> Could anyone suggest me a sample code about the possibility to move > a slider by the up/down keys? Hi Ivano, The fltk sliders ought to respond to the keyboard up/down keys by default. Try the valuators demo in the test folder, but it certainly works OK for me. Vertical sliders respond to the up/down keys and horizontal sliders respond to the left/right keys. You need to give the widget focus first, of course, either by navigating to it using keyboard actions of by clicking on it with the mouse. However, in your program, you can probably set the focus to the widget explicitly, or if you turn off keyboard navigation entirely (see docs for Fl::visible_focus() and Fl_Widget::clear_visible_focus () to see how that works) then there's a fair chance (i.e. I didn't try this) that any cursor up/down keys might be sent to the valuator widget anyway. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

