[Glade-devel] [question] Glade box model

Date view Thread view Subject view Author view

From: Nelson Correa de Toledo Ferraz (nferraz@insite.com.br)
Date: Mon Mar 12 2001 - 15:46:24 EST


Hello all!

I'm trying to understand the Glade XML schema, but I must confess that
right now I'm a bit lost. Perhaps because I'm most used with the W3C box
model, I can't understand how the Glade tables work.

I have made a project using a 2x2 table and a label. I saved the project
twice, and examined how the position of a label in this table affects the
XML source code. (BTW, take note -- it would be very nice if we could see
the XML source code from Glade, just like in any browser!)

Now, how come that, when the label is in the first cell (0,0), the source
code has the properties of listing 1, and when it is in the second column
(0,1) it has the properties of listing 2?

Listing 1: A label in cell (0,0)

        <left_attach>0</left_attach>
        <right_attach>1</right_attach>
        <top_attach>0</top_attach>
        <bottom_attach>1</bottom_attach>

Listing 2: A label in cell (0,1)

        <left_attach>1</left_attach>
        <right_attach>2</right_attach>
        <top_attach>0</top_attach>
        <bottom_attach>1</bottom_attach>

What is the logic behind these numbers??? I know that it must be something
simple, but I'm really lost.

Is it possible that, someday, you'll adopt the same box model proposed by
W3C? I know, it's more difficult to parse and render, but it has a number
of advantages, starting by the fact that you don't have to declare how
many rows and columns your tables will have!

Thanks in advance,

Nelson

__________________________________________________________________
Nelson Ferraz Insite - Solucoes Internet
e-mail: nferraz@insite.com.br http://www.insite.com.br/

_______________________________________________
Glade-devel maillist - Glade-devel@helixcode.com
http://lists.helixcode.com/mailman/listinfo/glade-devel


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Mar 12 2001 - 16:52:37 EST