Layout that uses Group boxes

Layout example that uses group boxes is shown in List 101, and the corresponsing dialog is shown in Figure 61.

GroupBox elements can be used to define groups of items.

List 101 Layout definition example that uses group boxes
 1<Tab name="grouping" caption="Group">
 2  <Item name="g_jrep" caption="Periodic boundary condition">
 3    <Definition valueType="integer" default="0">
 4      <Enumeration value="0" caption="Disabled"/>
 5      <Enumeration value="1" caption="Enabled"/>
 6    </Definition>
 7  </Item>
 8  <GroupBox caption="Water surface at downstream">
 9    <Item name="g_j_wl" caption="Basic Setting">
10      <Definition valueType="integer" default="1">
11        <Enumeration value="0" caption="Constant value"/>
12        <Enumeration value="1" caption="Uniform flow"/>
13        <Enumeration value="2" caption="Read from file"/>
14      </Definition>
15    </Item>
16    <Item name="g_h_down" caption="Constant value (m)">
17      <Definition valueType="real" default="0" />
18    </Item>
19    <Item name="g_j_slope" caption="Slope for uniform flow">
20      <Definition valueType="integer" default="0">
21        <Enumeration value="0" caption="Calculated from geographic data"/>
22        <Enumeration value="1" caption="Constant value"/>
23      </Definition>
24    </Item>
25    <Item name="g_bh_slope" caption="Slope value at downstream">
26      <Definition valueType="real" default="0.001">
27      </Definition>
28    </Item>
29  </GroupBox>
30  <GroupBox caption="Velocity at upstream">
31    <Item name="g_j_upv" caption="Basic Setting">
32      <Definition valueType="integer" default="1">
33        <Enumeration value="1" caption="Uniform flow"/>
34        <Enumeration value="2" caption="Calculated from upstream depth"/>
35      </Definition>
36    </Item>
37    <Item name="g_j_upv_slope" caption="Slope for uniform flow">
38      <Definition valueType="integer" default="0">
39        <Enumeration value="0" caption="Calculated from geographic data"/>
40        <Enumeration value="1" caption="Constant value"/>
41      </Definition>
42    </Item>
43    <Item name="g_upv_slope" caption="Slope value at upstream">
44      <Definition valueType="real" default="0.001">
45      </Definition>
46    </Item>
47  </GroupBox>
48</Tab>
../_images/layout_groupboxes.png

Figure 61 Dialog for layout definition example that uses group boxes