[gtkmm] TreeView::get_column_cell_renderer



I want to modify the properties of a cell renderer. I can use the
following function to get the cell renderer for a column. But I am not
sure how to do the syntax for the dynamic cast descriped below:

CellRenderer* Gtk::TreeView::get_column_cell_renderer 
(
int 
  n
) 


 
Gets the CellRenderer for that
column.

You should dynamic_cast<> to the
expected derived CellRenderer type.
This assumes that the TreeViewColumn
contains only one CellRenderer. 


If I try the following it complains because get_column_cell_renderer
returns a CellRenderer and not a CellRendererToggle:

	Gtk::CellRendererToggle *cell=get_column_cell_renderer(column);
	cell->set_radio(true);

thanks.

-- 
Peter Gasper <pgasper designadvantage com>




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