Re: about widget event



Frank wrote:

I noticed that some widget event handlers return boolean values,  like
virtual bool on_button_press_event(GdkEventButton* event);
virtual bool on_button_release_event(GdkEventButton* event);

Why? What's it for? If I am to override it, what should I return?

You should normally return true, which means that the event has been handled - no other event handlers will be called then.
antonio



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]