Hi,
I have an Fl_Window with an Fl_Text_Display in it. I want my Fl_Text_Display
to ignore all keyboard events, so that other widgets in my Fl_Window can handle
them, but accept relevant mouse events. That is, I want to be able to scroll
through the Fl_Text_Display by clicking the mouse on the scroll bar of the
Fl_Text_Display.
It appears that the Fl_Text_Display handles FL_Up and FL_Down if the mouse
is NOT over the Fl_Text_Display, but ignores them if the mouse is over it.
I tried making a new class:
class MY_Fl_Text_Display : public Fl_Text_Display
.
.
.
if(event == FL_KEYBOARD)
{return(0);}
else
{return(Fl_Text_Display::handle(event));}
But it didn't seem to work. Any ideas?
Thanks
Kevin
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk