Show TOC

 Creating a Tabstrip ControlLocate this document in the navigation structure

Use

You use this procedure to create a tabstrip control in the alphanumeric mode of the Screen Painter. You must perform the following steps:

  • Create a tabstrip area
  • Define tabstrip elements (pushbuttons and subscreen areas).
Procedure

Defining the Tabstrip Area

  1. Position the cursor where you want the top left-hand corner of the tabstrip control to be.
  2. Choose Edit → Create elements →Tabstrip control.

    The system displays the maximum possible size for the tabstrip control.

  3. Position the cursor where you want the bottom right-hand corner of the tabstrip control to be.
  4. To mark the end of the tabstrip control, choose Select Ctrl end.

    An attribute dialog box appears.

  5. Maintain the tabstrip control attributes. For more information, see Tabstrip Control Attributes.
  6. Choose Transfer.

    The tabstrip control appears on the screen.

    Note

    By default new tabstrip controls have two tab titles. To add additional tab titles, you must use pushbuttons. A subscreen area must be assigned to each tab page.

Defining Tabstrip Control Elements

  1. Select the tabstrip control.
  2. Choose Edit → Ctrl elements.

    The tabstrip element dialog box appears.

  3. Under tab title, enter the field name for the pushbutton you want to create.
  4. Choose Attributes.
  5. Enter the attributes and choose Copy.
  6. Enter the function code and function type of the pushbutton.
  7. Under Subscreens, enter the field name of the subscreen area and maintain its attributes.
  8. On the Reference subscreen, assign the appropriate subscreen areas to the pushbuttons.
  9. Choose Transfer.
    Tip

    You can also use the Tabstrip Control Wizard, which takes you step-by-step through the process of creating a tabstrip control. For more information, see Using the Tabstrip Control Wizard.

Result

You have created a tabstrip control and assigned additional tab titles and subscreen areas to it. To get an impression of how the tabstrip looks at runtime, you can run a simulation of the screen. For more information, see Testing Screens.