Ahh..good idea. I did:
if(event == 8 || event == 9 || event == 12)
   {return(0);}
else
   {return(Fl_Text_Display::handle(event));}

And it seems to work. Thanks.



> Kevin Cockrell wrote:
> >   if(event == FL_KEYBOARD)
> >       {return(0);}
> >   else
> >       {return(Fl_Text_Display::handle(event));}
>
>       Hint: take a look at what FL_KEYBOARD resolves to in Enumerations.H.
>       You're only getting half the events you want.
>
>       Also: try #include'ing this file into your app:
>       http://fltk.org/strfiles/508/fl_eventnames.h
>
>       ..and using it to print the events at the top of your
>       handle() function, so you can see all the events
>       it's receiving, eg:
>
> int MY_Fl_Text_Display:handle(int e) {
>     fprintf(stderr, "EVENT: %s\n", fl_eventnames[e]);
>     . . .
>
>       ..then hit the PgUp/PgDn key and watch the events
>       it generates.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to