Hi T

Thanks for the response. What is the need of catching scroll events of the
things that are inside scroll group and sending to the scroll group. I want
to move entire scroll group when arrow keys are pressed. Can u post pseudo
code for this for more help???



On Thu, Apr 19, 2012 at 10:26 PM, imm <[email protected]> wrote:

> 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
>



-- 
*
Thanks & Regards,
Rajesh Kumar P
*
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to