Re: [gtkmm] TreeView width?



ZHOU DX wrote:
Hi,

Probably you can get the width of the treeview in the
on_realize of its parent frame or whatever. Then you
can do some adjustment.

[...]
It seems funny, but the best solution for me occured to be this one:

this->set_size_request(std::min(int(scrollwindow->get_width() + 2 * get_border_width()), 1000), 780);

The scrollwindow is set to policy "Never".
Thanks to all.
	Igor Gorbounov





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