I’m having trouble getting the layout I want in a GTK Window and I don’t have time to learn the ins and outs of the layout system for this simple application (which has to use Mono GTK# in spite of the fact that I’m not very familiar with it).
The layout is deceptively simple:
The bottom of the window should contain two rows of buttons, eight buttons per row.
The remainder (top) should be a TextView.
The buttons need to all be the same size and the bottom eight should align with the top eight. When the window is resized in the width, all buttons should adjust their widths so that all eight fit snugly across the width of the window. If the button text doesn’t fit because the width has become too small it should just crop the text.
I’m using a VBox with three rows, the bottom two rows each having an HButtonBox, one for eight buttons, but I’m thinking that’s not the way to achieve what I want. Any help would be appreciated.
There is a Gtk.Table control that you use as follows:
You will have to set the Homogeneous property of the table to true to achieve the desired effect.