Re: Scrollbars in Gtk::TreeView



Thanks,

But I'm looking for another solution than this... I would like to
limit the number of visible rows (like Gtk::Entry can set a limit of
visible characters...), if could be possible, of course.

Glus

2012/6/8 Juan Angel Moreno <jamf gm gmail com>:
>
> 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);


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