2011-11-19 13:58, Phong Cao skrev:
Hello everybody,I don't think it's possible to do what you want in a reasonably easy way. Which mouse button is used for which action is hard-coded in GTK+'s GtkRange widget. All programs are supposed to behave the same. A left mouse button click in the trough of a Range widget does not move the slider to the mouse, it moves the slider one page. You specify the page size in the associated Adjustment. In principle you can connect to Gtk::Widget::signal_button_press_event() and Gtk::Widget::signal_button_release_event(), and handle mouse button presses the way you want, but I think it will require a lot of code. |