Re: Change font,size of column title



I am using Gtk::TreeModelColumn as given in the gtk tutorials below:

http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/chapter-treeview.html#sec-treeview-model

Anything to work around with the Gtk::TreeModelColumn to set the column
title font?

Thanks
Sirisha


On Thu, 2008-12-11 at 20:17 +0100, Armin Burgmeier wrote:
> On Thu, 2008-12-11 at 12:03 -0700, Sirisha Muppavarapu wrote:
> > Hi there...
> > 
> > I am looking for the method/piece of code which changes the
> > font/size,etc of the column title of the columns added to the treeview.
> > 
> > treeView.modify_font(Pango::FontDescription(font));
> > 
> > doesn't seem to be helping. It changes the row's font but not the column
> > title's font. gtkmm archive emails are of no help. I see many similar
> > questions but no reply is posted! Any pointers in this direction is
> > highly appreciated.
> 
> You could try using Gtk::TreeViewColumn::set_widget. Set a Gtk::Label
> with your desired font settings as the column's widget.
> 
> > Thanks
> 
> Armin
> 


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