Step 6 Add a Field to the Form and Set its Properties

Visual LANSA

Step 6. Add a Field to the Form and Set its Properties

FRM015 - Getting Started with Forms Programming

In this step you will add a field from the LANSA Repository to your form to display the Hello World text. You will change the field margins so that you don't display the field label.

1.  On the Repository tab, select the Fields node.

2.  If Alphabetical Groupings is on, expand the letter S to see the list of fields starting with the letter S.

3.  Locate the field STD_TEXT.

4.  Drag and drop the STD_TEXT field onto your form.

5.  Double-click the field to display the Details tab and change the MarginLeft property of the field to 0 so that the label is not visible.

     You may wish to reposition the field on the form once the label is no longer displayed. You may also adjust the Width of the field using the Details tab, or by using the Design tab to resize the field with the mouse.

     Note: with the field selected, you can move the field using the cursor keys while holding down  the Control key. This is often the easiest way to position a component accurately.

     Your form should appear something like this: