Spanning Columns in a GTK# Table

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.

Share

Written by:

279 Posts

View All Posts
Follow Me :

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.