Re: Question on layout basics ...

From: Date: Tue, 21 Mar 2006 18:25:24 +0000
Subject: Re: Question on layout basics ...
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6801@lists.php.net to get a copy of this message
Madeleine, No, I didn't, so if I'm on the right track it would be nice to know. I have decided to not use Christian Weiske's AppWizard, but to call the GladeXML constructor directly, like so ...
        $glade = &new GladeXML( dirname( __FILE__) .   "/basichelp.glade");
although I've not quite figured out how this will work with multiple windows in a project. <g> I could make each window it's own .glade file and instantiate each separately. Thank you for keeping an eye out for me. Tks - Miles PS Has there been any traffic on the list? I've seen nothing. /mt At 01:48 PM 3/21/2006, you wrote:
Miles - Did you get any replies on this? Madeleine D. Miles Thompson wrote:
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.6/286 - Release Date: 3/20/2006

« previous php.gtk.general (#6801) next »