GTK Scroll Window - Scroll Down

I am writing an application using GTK + and I have a problem. I use the GTK scrollable window and I have to scroll the vertical scrollbar to the end, but I don't know how. I looked at Google but didn’t find anything.

Please, help.
Thanks in advance.
Regards.

+3
source share
2 answers

You should get the settings object (adjustment, adjustment), and then call the methods on them. Assuming gtkmm, as you noted this with C ++, something like this:

Glib::RefPtr<Adjustment> adj = win->get_vadjustment();
adj->set_value(adj->get_upper()); 
+6
source

Gtk without Glib is a feat of some kind. :)

, :

+2

Source: https://habr.com/ru/post/1781032/


All Articles