> and in the implementation i have something like this:
>
> int handle(int event)
> ...
> case RELEASE:
>    pointerToClassA = functionReturningPtr();
>
> But when I do this call, the pointer still remains null.
> I don't know why it is not working.

Does you also handle() FL_PUSH events correctly?

>From http://www.fltk.org/documentation.php/doc-1.1/events.html#events

   FL_RELEASE

   A mouse button has been released. You can find out what button by
   calling Fl::event_button().

   In order to receive the FL_RELEASE event, the widget must return
   non-zero when handling FL_PUSH.

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

Reply via email to