RE: GtkSheet works on Gtk2.2 ?



GtkTreeView is great!, but it is too powerful...
I usually works on Windows, and there is a grid control called GridCtrl
in codeproject.com.

To create and display a grid:

CgridCtrl Grid;
Grid.Create(parent,size,......);
Grid.SetRowNumber(3); 
Grid.SetColNumber(2);
Grid.SetFixRowNumber(1);
Grid.SetItemText(0,0,"name"); // title
Grid.SetItemText(0,1,"age");
Grid.SetitemText(1,0,"Jerry");
Grid.SetItemText(1,1,"21");


9 lines code create a 2X2 list with 1 header;

To change the content in a cell, only use 1 line code.

Grid.SetItemText(1,1,"25");

You can see how easy it is, but to use GtkTreeView. I think at least
there should 200 lines to create the widget and at least 5 lines to
change a cell.










-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of
Murray Cumming Comneon com
Sent: Monday, October 27, 2003 10:29 AM
To: tom liu flextrade com; gtk-app-devel-list gnome org
Subject: RE: GtkSheet works on Gtk2.2 ?

From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Tom Liu
GtkSheet is a very good widget,

It's a bizarre widget, and GtkTreeView probably does what you need.

But looks it is only on Gtk 1.2,

Is there a better version of GtkSheet which works on Gtk2.2 or later?

There is a gtkextra 2 in gtkextra's cvs, but the maintainer has never
actually made a release. You might ask him.

Murray Cumming
www.murrayc.com
murrayc usa net
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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