开发者

GTK : How to set the Height of a VBox?

Hi I'm making an app using GTKMM. The screenshot is below:

Screenshot开发者_Python百科

The Problem is, I'm not able to position the "My Label" to align at the top, just below the Search box.

I'm packing Name,Search box, Search Button into a HBox, which is packed into a VBox, and then MyLabel is packed into the VBox.

I think the problem is that the VBox is assigning equal heights to the two rows, So even though I align MYLabel to the top, but it's top is the middle of the screen 'cuz VBox distributed the heights between the two rows equally.

Is there a way to set the Heights of the VBox rows?? or any other way out?


Set the "expand" and "fill" properties of the label to false.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜