Hi Ben, thanks for your help, can you test this code under win7? (my fltk2
package: fltk-2.0.x-r7513.tar.gz, compiled with mingw under windows)
====================================================================
#include <windows.h>
#include <fltk/run.h>
#include <fltk/Window.h>
#include <fltk/Win32.h>
#include <fltk/events.h>
class my_win_class : public fltk::Window
{
public:
my_win_class() : fltk::Window(200, 200, "test")
{
};
protected:
int handle(int event);
//void draw() {return;};
};
int my_win_class::handle(int event)
{
if (event == fltk::PUSH)
{
printf("mouse push: \n");
//return 1;
}
else if ( event == fltk::RELEASE )
{
printf("mouse release: \n");
//return 1;
}
else if ( event == fltk::DRAG)
{
printf("mouse drag:\n");
}
else if (event == fltk::MOVE)
{
}
else
printf("event=%d\n",event);
return fltk::Window::handle(event);
}
int main() {
my_win_class win;
win.show();
fltk::run();
return 1;
}
=========================================
Best regards.
gw
>
> > 1. The program compiled with old fltk2.0 library has no problem in
> > capturing the mouse RELEASE event both under winxp/vista or win7.
> >
> > 2. The program compiled with existing fltk2.0 library (i actually compiled
> > it under windows 7) has no problem under winxp, BUT only has problem under
> > windows 7. I think it is resulting from the compatibility of the fltk2.0
> > library.
> Which version of 2.0 is the "old" version and which version is the "new"
> version? Could you also post a small, compilable example of your code so
> that I can attempt to reproduce (and then possibly triage) this bug? '
>
> Regards,
> Ben
>
>
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk