I would expect that the callback of the button will be executed when the button
is pressed. Isn't that so?
Oguz
> Hi
>
>
>
> I could able to capture mouse events with my application when I click mouse.
> But not able to capture button event when button is pressed
>
> Example -> button key is pressed or not
>
>
>
> How to capture button event and mouse event at same time ?
>
>
>
> *Here is my piece of code*
>
> int drawmouse::handle(int event)
> {
> printf("\n value of event :%d", event ); // getting event name
> switch(event)
> {
> case FL_PUSH:
> flag = 1;
> prevx = Fl::event_x();
> prevy = Fl::event_y();
> return 1;
> case FL_DRAG:
> if(flag == 1)
> {
> damage(FL_DAMAGE_USER1);
> }
> return 1;
> case FL_RELEASE:
> flag = 0;
> return 1;
> default:
> return Fl_Widget::handle(event);
> }
> }
>
> Regards
> raj
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk