On 19/04/2012 16:40, Rajesh Kumar wrote: > Hi all, I am having a scroll group in on a window. When I pressed > up/down and side arrows key the entire scroll group should move > respectively. Am using FLTK1.3 on ARM based linux hand held terminal. > Any suggestions???
You might almost be better driving your own widget for that then handling the scrolling in your handle() method. Fl_Scroll is a bit of a weird beast at times, so persuading it to do what you want might be tricky. Depending on what is in your scroll group, it might be possible to drop a frameless, boxless, "box" widget that covers the entire scroll and in its handle method catch the scroll key events and have it send them to the Fl_Scroll widget to move it accordingly, i.e. have it call Fl_Scroll->scroll_to(x,y); in response to the key presses... _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

