Re: Scrollbars in Gtk::TreeView
- From: Juan Angel Moreno <jamf gm gmail com>
- To: Glus Xof <gtglus gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Scrollbars in Gtk::TreeView
- Date: Fri, 8 Jun 2012 10:08:46 +0200
2012/6/7 Glus Xof
<gtglus gmail com>
Hi guys,
Is it possible to set Gtk::TreeView objects in order to fix the number
of rows of normal viewing, and that above that a vertical scrollbars
appear automatically ?
In my application should be interesting to adjust the amount of rows
to show at a time, for example 10 or 15. If a greater number of rows
must be shown, should be "nice" scrolling down to continue reading.
Glus
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
Probably what you need is a Gtk::ScrolledWindow and set its policy to automatic:
Gtk::ScrolledWindow scroll;
scroll.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
scroll.add(YourTreeview);
Greetings.
--
Atentamente:
Juan Ángel Moreno Fernández
------------------------------
Proyecto Gelide
http://gelide.sf.net------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]