Creating tabular layouts on forms in 0.91

In the past it has been somewhat tedious to organize controls in a tabular format on a form and challenging to mix and match layouts with regular controls.

With version 0.91 there are two important enhancements.  One is the ability to have a section defined as a regular control on a form instead of an entire panel.  In the past you could build a section as a single form but you could only build a form of exclusively sections and tabs, you couldn’t mix regular controls and sections and the sections layout was restricted to the layout of the source form.

Now you can build a section, add controls to it - without any specific layout and then you can insert that section into the form, and control the layout from the parent form.  What it essentially does is create a panel and adds the controls to the panel using Javas flow layout by default.  But you can then apply any layout you want using the init script.  If you want to apply a tabular format you can use GridBagLayout for example.

Lets look at the process end to end.

Step 1 The original spreadsheet section

Step 2 Create the build sheet

See our guide for details but prior to adding the table we have

Step 3 Add the table

Adding the table we just paste in the following

Radial L;Radial R;Pedal L;Pedal R
Regular
Irregular
Weak
Thready
Strong
Bounding

This then creates all the controls on the build sheet.

After we create the record items the build sheet looks like this.  Select all the controls for the table and press Copy.

Step 4 Create the section

Finally create a new form, change the number of columns to match your table - in this case 4 and paste the controls in.  After modifying the label format and column widths you have a table ready to be added to another form.

Comments are closed.


  • Categories