Re: [OBORONA-SPAM] TreeView Queries
- From: Alexander <rope-walker yandex ru>
- To: "Matt Galloway" <matt galloway me uk>, gtkmm-list gnome org
- Cc:
- Subject: Re: [OBORONA-SPAM] TreeView Queries
- Date: Mon, 13 Feb 2006 19:29:44 +0200
On Thu, 09 Feb 2006 01:48:11 +0200, Matt Galloway <matt galloway me uk>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]