Re: Controlling a scrolled area....
- From: Owen Taylor <otaylor redhat com>
- To: "Thomas Cameron" <tom ceisystems com>
- Cc: <gtk-app-devel-list gnome org>
- Subject: Re: Controlling a scrolled area....
- Date: Fri, 13 Sep 2002 10:48:56 -0400 (EDT)
"Thomas Cameron" <tom ceisystems com> writes:
Hello all,
I've built a window which contains a scrolled window. I have set the
policy on the scrolled window to never show the scroll bars, as I want
to use custom buttons. I was reading through the GTK+-2.0 API
Reference, looking for information about the scroll bars, etc.
I have tracked the scroll bars down to the GtkAdjustment widget, which I
assume is the actual object that is scrolled. Is this correct? While
reading up on the Adjustment widget, I found that it has the Get and Set
functions for its value. If I set the value, does that actually make it
scroll? In addition to these two questions, I would also like to know
if an adjustment object is packed into the scrolled window. I have
packed my widgets into it using the
'gtk_scrolled_window_add_with_viewport' function, if that helps.
You get the adjustment objects with:
GtkAdjustment* gtk_scrolled_window_get_hadjustment (GtkScrolledWindow *scrolled_window);
GtkAdjustment* gtk_scrolled_window_get_vadjustment (GtkScrolledWindow *scrolled_window);
Then you can control them with the functions in gtkadjustment.h.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]