Creating Form Tabs

Form tabs are created on a business application program form using the commands shown in the following example.

$FORM   XXnnn S 
* [form processing, fields, buttons, or graphics]

$TAB-REGION
$TAB-FOLDER [optional]
$TAB-SCROLL [optional]

$TAB-FORM TabName "Displayed Name"
* [form fields, buttons, or graphics]
$END-TAB TabName

$TAB-FORM TabName "Displayed Name"
* [form fields, buttons, or graphics]
$END-TAB TabName
.
.
.
$END-REGION
* [form fields, buttons, or graphics]

$END-SCR XXnnn S

To create form tabs on an application form

  1. Open the form definition file.
  2. Move to the $FORM section of the form definition file.
  3. Add the $TAB-REGION and $END-REGION commands to delimit the data you want to present in form tabs.
  4. In the $TAB-REGION section, add the $TAB-FORM and $END-TAB commands to delimit the data you want to present on a single form tab.
  5. In a $TAB-FORM section, add $TAB-DETAIL and $END-DETAIL commands to delimit any detail areas on the form tab.
  6. Add or modify graphic effects. These commands can be used:
  7. Add program logic to control form tabs. For more information, see Controlling Form Tab Access from a Program.

    The following modifications can be made

    To See
    Bring a new form tab into focus as data changes. Changing Form Tab Focus
    Dynamically alter form tab header text. Changing Header Text for a Form Tab
    Prevent access to one or more form tabs. Protecting a Form Tab