Re: Newbee: gtkTable
| From: | Benjamin Smith | Date: | Wed, 26 Nov 2003 01:22:40 +0000 |
| Subject: | Re: Newbee: gtkTable | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4231@lists.php.net to get a copy of this message | ||
On Sunday 23 November 2003 04:25 am, Lars-Bo Jacobsen wrote:
> I need a widget that will hold data from an array, is the gtkTable the way
> to go? If someone has a working example of a table being populated with
> data from an array, I would very much appreciate if I could see that
> example.
That really depends on the type of data. If a field is going to contain 3 MB
of binary image data, a table is *NOT* the way to go. Also, note that
GtkTable doesn't directly contain whatever you want to display - you must use
a widget (such as GtkLabel) to display the data.
However, I would tend to use GtkCList for row-based data when the data isn't
too tremendous in size. The code is much simpler to implement, but it won't
display multi-lined data.
If the data is bigger, you can connect a callback to display the full contents
of a field in another window, or another section of the screen when you click
on a column within a row.
Cheers!
-Ben