After you transform a form to a page, you may encounter problems with text boxes that were used as labels on the form, because they may not be transformed correctly to labels on the page. This issue occurs when a text box on a form does not comply with the text box control mapping rules in the form transformation tool. For more information about built-in text box control rules, see the Text Box Control section of Control Mapping Rules.

Text boxes are transformed in the following cases:

The following procedure describes how to verify and redesign text boxes that are used as labels on the form so that they are transformed correctly.

To complete this procedure, you will need:

Text Box Used as a Label

The following illustration shows a form that uses a text box as a label. In this example, the text box does not meet the Xpos requirements to be adjacent to another control.

The following illustration shows the resulting page if you transform this form.

The Overdue Amounts (LCY) label is not transformed correctly. To resolve this issue, move the text box or the adjacent control so that Xpos of the adjacent control is between 55 and 165 pixels of the end of the text box used as a label (Xpos + Width) and the Ypos of the control is within 25 pixels of the Ypos of the text box used as a label.

To verify that the text box label is adjacent to the control

  1. In the Classic client, on the Tools menu, click Object Designer.

  2. In Object Designer, select Form, select the form that you want to transform, and then click Design.

  3. If the following conditions are true for the text box, then the value of the SourceExpr property are transformed to the value of the CaptionClass property of the adjacent control. The value of the CaptionClass property is then used as a label on the page.

    • The text box does not have a parent control other than the container control.

    • The Focusable property is set to No.

    • The SourceExpr property has a value.

    • The text box is positioned adjacent to another control, such as an option button.

    NoteNote

    The text box is considered adjacent to anther control if the Xpos of the adjacent control is between 55 and 165 pixels of the end of the text box used as a label (Xpos + Width) and the Ypos of the control is within 25 pixels of the Ypos of the text box used as a label.

    The following illustration shows the transformed page with the text box label transformed correctly.

  4. To save and compile your form, close the form in Form Designer. In the Save Changes window, confirm that the Compile check box is selected, and then click Yes.

See Also