Question on layout basics ...
| From: | Miles Thompson | Date: | Mon, 20 Mar 2006 16:13:11 +0000 |
| Subject: | Question on layout basics ... | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6800@lists.php.net to get a copy of this message | ||
This is v. much a new-to-GTK+PHP question. Please confirm, or correct if the following layout assumptions are correct.
I need:
dynamically resizeable list,
set of 4 fields with labels to hold data that can added/edited, and
row of buttons for add / edit / save / delete.
Using wGlade, I'm pretty certain this is the procedure to follow:
Create new window
Insert a GtkVBox - call it holdall
Insert GtkHButtonBox, with 4 buttons, into holdall
Insert a GtkTable above the button box into holdall. 5 columns, two rows
In the cells of the first column insert the GtkLabels for the entry fields
In the cell of second column insert the GTKEntry fields
skip the middle column or insert a bit of space
Repeat for fourth & fifth columns
Insert another GtkVBox into holdall, above the table box
Insert a GtkCList in this vBox
To keep the row of buttons, I set them to non-expandable
Same thing for the table?
Now, if I resize the box, the GtkCList should expand, and everything else stays the same size?
When I tried the first vBox with three rows, I had no practical control over the automatic re-sizing of the row containing the fields. That's why I think a stack of boxes is the way to go.
Now, after all this is done, then I add the tags, etc. for the functions I want to happen, save, then process the Glade file using Christian Weiske's AppWizard to generate the basic PHP framework. Or is there a better way?
Advice and suggestion are most welcome.
Regards - Miles Thompson
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 3/17/2006