开发者

Auto resizing GtkScrolledWindow

开发者 https://www.devze.com 2023-03-17 23:12 出处:网络
I have added three GtkHBox inside a GtkScrolledWindow. And set开发者_开发百科 the size of each box as the size of the window. but, when exposed the size of the Scrolled window is resizing by itself.

I have added three GtkHBox inside a GtkScrolledWindow. And set开发者_开发百科 the size of each box as the size of the window. but, when exposed the size of the Scrolled window is resizing by itself.

But, when i do the same with three Layouts ScrolledWindow size is maintained properly. What could be the reason for this.


GtkHBox doesn't have a scrolling interface. GtkLayout does. You can add a scrolling interface to something that doesn't have one, by putting it into a GtkViewport and then putting the GtkViewport into the GtkScrolledWindow.

0

精彩评论

暂无评论...
验证码 换一张
取 消