GtkTable cells and alignment

From: Date: Thu, 26 Apr 2001 20:15:42 +0000
Subject: GtkTable cells and alignment
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1527@lists.php.net to get a copy of this message
Hey all, Was hoping you'd be able to give a GTK newbie a bit of help with tables. I'm trying to use a table widget to layout a bunch of entry boxes and their corresponding labels. How do I set the alignment for a specific cell? I think that my problems might also be caused by the label widget expanding to fill all of it's assigned cell. Perhaps you could tell me if this is so (based on the following code) and how to prevent this if it is in fact the case. <?php $table = &new GtkTable(1,1,0); $label = &new GtkLabel("This is a label"); $entry = &new GtkEntry(); $table->append($label, 0, 0 + 1, 0, 0 + 1); $table->append($entry, 0, 0 + 1, 1, 1 + 1); ?> The table is then packed into a vbox in case that helps. Thanx!!!!!

« previous php.gtk (#1527) next »