Changing Host Fields with Custom Rules

Rules are operations that occur during the conversion from the host screens in your target host application to the custom forms that comprise your custom application. Rules dictate the way host fields are converted to various customized GUI controls (labels, text fields, buttons, and Web links), and how these controls will look, feel, and behave.

Rules are applied to host screens in the order of precedence defined on the Theme editor. By default, every theme includes at least the two standard rules, which convert protected fields into Label controls and unprotected fields into TextField controls. You can create new rules yourself, or modify the ones that come with your theme.

When automatically converting host field into button controls, you can set an AID to be pressed when the buttons are clicked.

To create a rule
  1. Run Presentation Designer and, from the Tools menu, open the Theme Manager.

  2. Create a new theme or modify a copied one.

    The Theme editor appears.

  3. Under Rules for Generating Controls, choose New.

    The Rule editor appears.

  4. Enter a name in the Rule Name box (required).

  5. Under Field Match, specify to which type of field this rule applies, by selecting the check box next to one or more match items, and adding values to each item by double-clicking the value field for each selected item.

    Depending on the item, double-clicking will open either a list box or a Select Match Parameters dialog box, from which you can choose a value; or, for the Regular Expression item, double-clicking enables a text field where you can type in a valid, simple string that matches the text from the host field precisely.

  6. Under Control to be Generated, in the Type of Control list box, select which type of control you want this rule to generate.

    The Rule editor displays a set of properties specific to the control type you have selected.

  7. Make any desired changes to the properties for the control to be generated, then click OK to close the Rule editor.

  8. Click OK to close the Theme editor, then click OK to save the changes to the theme and close the Theme Manager.
Note The changes to themes are saved to file by clicking the OK button on the Theme Manager. Until then, all changes can be undone by clicking the Cancel button on the Theme Manager.
Related Topics
Bullet Customizing Applications Globally, Overview
Bullet Controlling Application Appearance using Themes
  Attachmate