Re: Overloading mouse events in a ProgressBar



On 06/08/2019 14:50, Phil Wolff via gtkmm-list wrote:
I'm deriving from Gtk::ProgressBar in order to track mouse events within the widget. The only callback that executes is on_map(). Can anyone tell me what vital (and likely obvious) operation I've failed to include?

I don't know if this still applies on GTK3 but on earlier versions ISTR that display widgets (like progress bar) usually aren't sensitive to mouse events because they have no reason to be. On X11 that also means they don't have the necessary X type. You have to wrap them in an event box and hook up to that instead.

HTH,

Rob



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