title: Getting nice-looking widget sizing in MonoDevelop (Gtk#)
body: <p>EDIT: <a href="http://users.vialink.com.br/jcastro/GUIBlah.tgz" rel="nofollow noreferrer">Click here for the code</a>.</p>
  
  <p>So I'm experimenting with interface building with MonoDevelop (version 2.4). I'm trying to get used to the Gtk concept of "containers within containers". I created a vbox with two... er... boxes, put a menu on the top box, and a table on the bottom one. I set the table to have two column and five rows. On the top four rows, I put a label in the left and an entry in the right. On the bottom right cell I put a button. It looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/RjowD.png" alt="GUIBlah Application"></p>
  
  <p>Here's the things I'm struggling with:</p>
  
  <p>1) How do I get the table's columns NOT to be of equal width? Amusingly, when I added just the labels, and hadn't added the entry boxes yet, the left column used up only the space needed for the labels. Now it's 50/50 and it won't budge.</p>
  
  <p>2) How do I get the labels to be right-aligned, so the final ":" in their texts gets nicely aligned and close to the entry boxes? I set the "Justify" property of the labels to "Right" and was seemingly ignored.</p>
  
  <p>3) The action code for the "Open" and "Close" actions under the "File" menu consist on displaying a modal message box with an OK button. But pressing the OK button doesn't dismiss the message box, only closing the message box window does. The code is:</p>
  
  <pre><code>(new Gtk.MessageDialog(this, DialogFlags.Modal, MessageType.Info, ButtonsType.Ok,
                    "Open Action")).Show();
  </code></pre>