On 25 Oct 2008, at 2:50, Larry Navarro wrote:

>       int handle(int event) {

>               return 1;


I suspect you are confusing fltk's event handling by simply *always*  
returning non-zero here.

Your widget will be offered many types of events (enter/leave/focus/ 
etc/etc) and since you are grabbing everything that comes your way,  
then a lot of follow-on events will be sent to your widget also. I'd  
guess that is what is happening here.

Basically, you want to return 0 for any event you are offered, unless  
you *really  do* use it. In practice, it is also a Good Idea to call  
the base class handle method (and recording the result) before doing  
your own thing, so that it can do any other event tasks that are  
required.

Hope that made some sort of sense, and was helpful!
Cheers,
-- 
Ian



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

Reply via email to