> Can you handle the events of a single widget, like
> Fl_Browser?
Yes.
> This code doesn't seem to handle the event of "flbrw" which
> is the name of a Fl_Browser:
>
> class flbrw : public Fl_Browser {
> public:
> int handle(int e) {
> cout << "test" << endl;
> }
> };
You'll need to show us more of the context I'm afraid - though I would
say that the subclassed handle method should *always* call the
base-class handle, unless you are absolutely sure that you do not want
the fltk default behaviours...
So, somewhere near the top of your handle method, you might want to add:
int result = Fl_Browser::handle(e);
And return that result.
Also, I note that your subclassed method does not appear to return
*anything*, which is a Bad Thing and will probably break the fltk event
passing.
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk