Creating a Tabstrip Control
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
- Position the cursor where you want the top left-hand corner of the tabstrip control to be.
- Choose Edit → Create elements →Tabstrip control.
The system displays the maximum possible size for the tabstrip control.
- Position the cursor where you want the bottom right-hand corner of the tabstrip control to be.
- To mark the end of the tabstrip control, choose Select Ctrl end.
An attribute dialog box appears.
- Maintain the tabstrip control attributes. For more information, see Tabstrip Control Attributes.
- Choose Transfer.
The tabstrip control appears on the screen.
Defining Tabstrip Control Elements
- Select the tabstrip control.
- Choose Edit → Ctrl elements.
The tabstrip element dialog box appears.
- Under tab title, enter the field name for the pushbutton you want to create.
- Choose Attributes.
- Enter the attributes and choose Copy.
- Enter the function code and function type of the pushbutton.
- Under Subscreens, enter the field name of the subscreen area and maintain its attributes.
- On the Reference subscreen, assign the appropriate subscreen areas to the pushbuttons.
- Choose Transfer.
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.