Re: scroll_event... up or down.
- From: Soeren Sandmann <sandmann daimi au dk>
- To: Mikael Brorsson <miga03 student bth se>
- Cc: GTK App Devel List <gtk-app-devel-list gnome org>
- Subject: Re: scroll_event... up or down.
- Date: 25 Jan 2004 15:08:41 +0100
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]