> Greg Ercolano wrote:
> >     But if you want to get mouse click events in an Fl_Browser, you can
> >     flesh out the above:
>
> This will work too; using return(1) in place of "ret = 1; break;"
> makes the handle() code a bit shorter:
>
>     int handle(int e) {
>         int ret = Fl_Browser::handle(e);
>         switch (e) {
>             case FL_FOCUS:
>             case FL_UNFOCUS:
>                 return(1);                      // express interest in 
> keyboard events
>             case FL_KEYBOARD:
>                 cout << "keyboard" << endl;
>                 return(1);
>             case FL_PUSH:                       // mouse click push
>                 cout << "push" << endl;
>                 return(1);
>             case FL_RELEASE:                    // mouse click release
>                 cout << "release" << endl;
>                 return(1);
>         }
>         return(ret);
>     }
>

Thank you,I now know how the handle works but where does "brow" come from in 
this code snippet:
flbrw *brow = new flbrw(0, 50, 870, 425);

Compiler error:
‘brow’ was not declared in this scope

My header file:
#include <FL/Fl_Browser.H>
extern Fl_Browser *flbrw;

Is there something conflicting?


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

Reply via email to