On 24/09/2010 10:41, Albrecht Schlosser wrote:

> 
> http://www.fltk.org/str.php?L2179
> 
> 
> Roman, I think that having such a feature would do exactly
> what you requested (for Windows). Is this correct?
> 
> Albrecht

Yes, this is pretty much the same.

I see that there is tendency to combine it with Fl::add_handler().
One thing is that add_handler functions accept an int argument (fltk event) 
which does not have any meaning at that time. On the other hand you need a raw 
event
message for particular platform. X version exposes fl_xvent global variable, 
but not under windows. Maybe both XEvent and windows MSG (and whatever is under
mac) can be  typedef-ed to something like Fl_XEvent and fl_msg renamed to 
fl_xevent for consistency. Then we can eg overload Fl::add_handler() to

   Fl::add_handler(int(*f)(Fl_XEvent *));

or something like that with explanation that this kind of handlers are 
processed before fltk and on success should return nonzero to stop fltk (or 
other
handlers) from further processing.

R.



_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to