On 31.08.2012, at 17:04, Furqan <[email protected]> wrote:

> No I am not using any kind of GlWidget of fltk for OpenGL display. I am using 
> the traditional OpenGL subroutines and added into Fl_Double_Window. In this 
> way, I created a menu bar in Fl_Double_Window.

So you create an OpenGL window using functions from the operating system, and 
you use FLTK to stitch another window into or next to the OpenGL window? I am 
not clear how you get both to work together, in particular event delivery is a 
problem, just like you encounter. 

Do you have two event loops? The OpenGL one and the FLTK one? How did you 
create the OpenGL window exactly and when in the process?

FLTK expects to receive ALL events from the operating system and then 
distributes those to the correct windows and widgets. Having a second even 
delivery systems makes it hard or impossible to know what event is delivered 
where.

Have you considered using Fl_GL_Window in your application? This would make all 
the window layering and event delivery work correctly.

A working and copilable source code file that exhibits the bug would be 
extremely helpful.

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

Reply via email to