On Thu, 09 Feb 2006 01:48:11 +0200, Matt Galloway <[EMAIL PROTECTED]>
wrote:
Hey,
I've just started gtkmm programming and I have a couple of queries
regarding Gtk::TreeView. They are as follows:
1) Is there anyway I can set the columns to have central alignment
within the columns? i.e. Like this:
Col 1 | Col 2
8 | 455
Instead of:
Col 1 | Col 2
8 | 455
Gtk::TreeView::Column *column;
while (column = treeview_table.get_column(i))
{
//column head alignment
column = treeview_table.get_column(i);
column->set_alignment(0.5);
//column fill all free space in table
/*void set_fixed_width (int fixed_width)
Sets the size of the column in pixels.
*/
column->set_expand();
//cell alignment
cell = treeview_table.get_column_cell_renderer(i);
cell->property_xalign() = 1.0;
i++;
}
2) Is there anyway I can set the width of the columns at startup? I
don't want the user to be able to change them and that's fine, I've got
that bit done.
Any help would be much appreciated!
Many thanks,
Matt Galloway
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list