Re: [gtkmm] Question to GTKmm widgets (can I do this with GTKmm?)
- From: "Andreas B. Thun" <abt gmx de>
- To: Matthew Walton <matthew alledora co uk>, gtkmm-list gnome org
- Subject: Re: [gtkmm] Question to GTKmm widgets (can I do this with GTKmm?)
- Date: Fri, 02 Jan 2004 12:31:45 +0100
THX, I´ve checked the TreeView example in "Programming with GTKmm2"
and found that I have to provide a ModelColumns class member for every column
data (see below my col_1/2).
class ModelColumns : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<Glib::ustring> col_1;
Gtk::TreeModelColumn<Glib::ustring> col_2;
ModelColumns()
{
add (col_1);
add (col_2);
}
};
The problem I am facing now is that my column data is dynamic.
(It does not change while the program is running, though).
I get the data I want to display from a file so I get the information
about how many columns I have to display only at runtime.
I am not a C++ expert, maybe soemone can explain how to build
the class ModelColumns dynamically?
Matthew Walton schrieb:
> It's entirely possible. The TreeView widget is the one you'll be wanting
> to look at to start with. Most of the columns could be CellRendererText
> columns for pure text rendering, but the first one would need both a
> CellRendererPixbuf and a CellRendererText in it to get the icons.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]