Re: Gtk2::SimpleList



You can get the column from the treeview you are using to create the simplelist
eg.
$treeview = Gtk2::TreeView->new();
$simplelist = Gtk2::SimpleList->new_from_treeview ($treeview , 'Text Field' =>'text');
$column1 = $treeview->get_column(0);
$column1->set_sizing('GTK_TREE_VIEW_COLUMN_FIXED');
$column1->set_fixed_width($width);

Chris

Daniel Kasak wrote:

Chris Debenham wrote:

The width can be set on each column by using
$column->set_sizing('GTK_TREE_VIEW_COLUMN_FIXED');
$column->set_fixed_width($width);

Chris

Thanks for the response :)

Is there a way of getting hold of a column that's been created via:
Gtk2::SimpleList->new_from_treeview() ?

I can see how to create new columns:
$col = Gtk2::TreeViewColumn->new_with_attributes()

Maybe I could still use Gtk2::SimpleList->new_from_treeview() but not give it any columns right away, and then do:
$col = Gtk2::TreeViewColumn->new_with_attributes()
$simplelist->append_column($col)
afterwords.

Is that the best way of doing it?

Dan


------------------------------------------------------------------------


The following links have been placed here by the NUS Consulting internal spam filter and are for use by NUS Consulting staff only.
Please ingore these links.
Spam <http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=43003&m=22f49fe48c76> Not spam <http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=43003&m=22f49fe48c76> Forget previous vote <http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=43003&m=22f49fe48c76>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]