Spanning Columns in a GTK# Table

0

Posted by Cynic | Posted in C#, Software, Solutions to Problems, Windows | Posted on 02-07-2012

Tags: ,

Coming from working on WinForms, GTK# is a very, very different paradigm for layout. I struggled to figure out just how to span columns in a table as searching for information didn’t really work out very well.

Instead of setting properties on the table, you set the properties on the widget as it inherits a “Table Child Layout”. The ***Attach properties are where you can then force a widget to span several columns.

GTK Attach Column Spanning

There I set the “RightAttach” on a label to 2 so that it would span 2 columns.

The language used in GTK is radically different from that used in Windows Forms, so it takes some getting used to.