Re: Formating text in treeview
- From: "Arthur Maciel" <arthurmaciel gmail com>
- To: "John Spray" <jcspray icculus org>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Formating text in treeview
- Date: Fri, 26 Jan 2007 01:21:46 -0200
Impressive.
Thank you very much, John.
Regards,
Arthur
2007/1/26, John Spray <jcspray icculus org>:
On Thu, 2007-01-25 at 21:10 -0200, Arthur Maciel wrote:
> I've read the gtkmm docs on it, but still don't know: will I be able
> to have just part of the text inside the treeview field in bold?
Gtk::CellRendererText *render = Gtk::manage(new Gtk::CellRendererText());
Gtk::TreeView::Column *viewcol = Gtk::manage(
new Gtk::TreeView::Column ("Title", *render));
viewcol->add_attribute (render->property_markup (), modelcol);
treeview->append_column (*namecol);
(where treeview is a Gtk::TreeView*, and modelcol is a
Gtk::TreeModelColumn<Glib::ustring>).
Then, you can use pango markup such as "Some <b>bold</b> and
<i>italic</i> text" as the text in your model.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]