Re: scroll_event... up or down.



Mikael Brorsson <miga03 student bth se> writes:

How do I check if a mouse wheel up or mouse wheel down has occured
with this event?

You widget must have a window with GDK_SCROLL_MASK in its
event_mask. Then install a callback in
widget_class->scroll_event. This function will be called when wheel up
/ wheel down occurs. You can check the direction by looking at the
field scroll_event->direction. You may want to see GtkScrolledWindow
for an example.


Søren



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