Hi, folks. I'm using FLTK (fltk-2.0.x-r7704) as part of a C++ application built
in Visual Studio 2005 (professional edition). My Window has a custom object
derived from GlWindow (called RR_GlWindow) and I'm having a problem with
setting the cursor via my overridden "handle()" method. I've tried several
variations on the following with no luck:
int RR_GlWindow::handle(int e) {
printf("Event: %s(%d)\n", fltk_eventnames[e], e);
switch(e) {
case fltk::ENTER:
cursor(fltk::CURSOR_CROSS);
return 1;
case fltk::MOVE:
cursor(fltk::CURSOR_CROSS);
return 1;
case fltk::LEAVE:
cursor(fltk::CURSOR_DEFAULT);
return 1;
default:
return GlWindow::handle(e);
}
}
Essentially, my cursor changes from "default" to "cross" right on the edge of
the GlWindow, but once inside, it becomes "default" again. Based on the results
of the print statement I added, the ENTER event changes the cursor correctly,
but MOVE changes it back to DEFAULT.
Anyone have any ideas about why this is happening or suggestions on the best
way to troubleshoot?
Thanks!
don
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs