4

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

Screenshot

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?

bk1e
  • 23,871
  • 6
  • 54
  • 65
ace
  • 2,141
  • 7
  • 29
  • 39

1 Answers1

6

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

ptomato
  • 56,175
  • 13
  • 112
  • 165
  • 1
    Thank you so much, it worked. For anyone facing similar problem, I solved the problem using the advice below, set the expand and fill property to false in my call to VBox pack_start(Widget& child,false,false) function. – ace Jan 28 '10 at 16:23