Re: Row with different columns at runtime?
- From: Kristian Rietveld <kris imendio com>
- To: Johannes Lorenz <johannes89 mailueberfall de>
- Cc: gtk-list gnome org
- Subject: Re: Row with different columns at runtime?
- Date: Wed, 13 Feb 2008 12:19:20 +0100
Hello,
On Fri, Feb 08, 2008 at 06:09:22PM +0100, Johannes Lorenz wrote:
> I have a List Store. In the most right column shall EITHER be a text, OR be a combo box, OR be a button etc. My programme shall read a file which shall tell it which type (text, combo, button etc.) to use for this column in the current row.
>
> However, I do not know how I can realize such a dynamic row. Is there a solution?
You can try to use the "visible" property on the cell renderers. For
example, you would pack all cell renderers that can possibly appear in
the column and then set the visible properties from a CellDataFunc
accordingly.
regards,
-kris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]