Re: scrolling text box with mouse wheel




And put the GtkScrolledWindow in the NOTEBOOK page?


Owen Taylor wrote:

James <James jigsawdezign demon co uk> writes:

Hello again,

  Here is a more detailed explanation of what i`m trying to do with the
mouse wheel for scrolling. Basically i have a window with menubar, and
toolbar at the top, then a NOTEBOOK, with a HBOX in each page of the
NOTEBOOK. Each hbox contains a TEXT box (main editing area) with a
scrollbar created on the right side. I can only use my mouse wheel to
scroll the TEXTbox when the pointer is over the scrollbar widget.... it
does not scroll if i use the wheel when over the text box...

Put the text widget inside a GtkScrolledWindow (using gtk_container_add())
rather than hooking up the scrollbar yourself.

                                        Owen




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