Elements inside HBoxes get their real sizes

A big advantage in using elements in an HBox is that the fields get their real sizes according to the .per definition.

LAYOUT 
GRID
{
<G g1 >
[a    ] single Edit Field

<G g2 >
 MMMMM
[b    ] The large label expands the Edit Field

<G g3 >
 MMMMM
[c   :]The large label has no influence on the Edit width 

}
 
END 
END 
ATTRIBUTES 
EDIT a = formonly.a, sample="0", default="12345"; 
EDIT b = formonly.b, sample="0", default="12345"; 
EDIT c = formonly.c, sample="0", default="12345"; 
END

In the second Groupbox, the edit field is expanded to be as large as the label above; using an HBox prevents this.


Use of HBox screenshot

Figure 1. Use of HBox

Note: in this example, we use a sample of "0" to display exactly five numbers.