Re: [gtkmm] row in a list/treeview



Andreas B. Thun wrote:

Take a look into cell_renderer_text propertie proxy's (
http://gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1CellRendererText.html)


Hi!

Thx for your help. I cannot find an example, though.
It is not clear to me how to modify my font to italic...

For that you need to set property_style() to Pango::ITALIC (or something similar to that, the exact name escapes me), and property_style_set() to true. That's quite handy actually, as if you only want some rows to appear in italic, set property_style(), and bind property_style_set() to a boolean column in your treemodel. Then you can have italics just by setting that column to true.

I do this in my own apps and it works really well. Just remember not to add the column to the treeview, as you don't really want your users to see it (although i suppose you might want them to in some situations).




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