Re: CellRenderer questions
- From: "Andrew E. Makeev" <andrew solvo ru>
- To: Edd Dawson <edd nunswithguns net>
- Cc: gtkmm-list gnome org
- Subject: Re: CellRenderer questions
- Date: Thu, 07 Sep 2006 10:17:25 +0400
В Вск, 03/09/2006 в 13:47 +0100, Edd Dawson пишет:
> Hello,
>
> I'm currently trying to get to grips with Gtk::TreeView. I've been wrestling
> with the docs for a good few hours now and I haven't quite come out with what I
> need.
>
> I'm wanting one of my columns to contain both a check-box and some associated
> text. I also would like another one of my columns to contain both a graphic icon
> (PixBuf or whatever) and some text.
>
> I'm struggling to find the information in the docs on how I would go about doing
> this -- i.e. how well do CellRenderers handle arbitrary-ish column types in a
> model? What can and what can't be used as a column type.
>
> Also, I'd like to be able to colour the background of a particular row in my
> TreeView. Is this possible? Pointers appreciated.
You should create TreeView Column, then add different CellRenderers.
For example, I'd recommend you to look at stockbrowser.cc demo file in
gtkmm sources.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]