removing rows from a table
| From: | Tony Leake | Date: | Fri, 15 Aug 2003 13:03:53 +0000 |
| Subject: | removing rows from a table | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3706@lists.php.net to get a copy of this message | ||
Hi,
Here is some code, this is not what I have done but it's just to
illustrate what I am trying to do.
$t = &new GTkTable;
$t1 = &new GTkTable;
$e1 = &new GtkEntry;
$l1 = &new GtkLabel;
$t1->attach($e1,0,1,0,1);
$t1->attach($l1,1,2,0,1);
$t2 = &new GTkTable;
$e2 = &new GtkEntry;
$l2 = &new GtkLabel;
$t2->attach($e2,0,1,0,1);
$t2->attach($l2,1,2,0,1);
$t->attach($t1, 0,1,0,1);
$t->attach($t2, 0,1,1,2);
So I have a main table with 2 rows, each being a table containing 2
columns
What I want to do is remove $t1 and $t2 from the table and then add some
more rows. I would prefer not to remove the whole table if at all
possible.
I have tried
$t->set_homogeneous(TRUE);
$t->resize(1,1);
$t->set_homogeneous(FALSE);
which did nothing. Apart from that I have no ideas. Can this be done
or will I have to resort to removing the whole table?
Thanks
tony
--
There are two ways to write error-free programs; only the third one
works.