> Hmmm...that's interesting. Ben: I built a minimal project using only the code 
> you provided and the cursor worked correctly. However, when I add the 
> GlWindow to a parent Window, I get the aforementioned cursor error.

So I'm not currently able to test this - in a couple of hours I will, but I'm 
not surprised this happens.
Basically, you create a window, and then declare your GlWindow as a child of 
this window.

Now, I'm not *entirely* certain, but I'd be just about willing to bet that what 
happens is that your subclassed GlWindow doesn't get to eat all the events, 
and/or the Window is getting the events passed *first*, and since the event 
most likely has a non-zero return value, your GlWindow doesn't get a chance to 
eat these events.

To get the effect (that I assume) you're going for (a GlWindow alongside a 
couple of buttons), I suggest it'll probably be easier to create a window 
that's derived from GlWindow and continue as you normally would from there - as 
it stands, GlWindow is already a subclass of Window so any functionality you 
need from a regular window will exist in your subclass.

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

Reply via email to