Creating a Tabstrip Control
For further information about defining and using tabstrip controls, see
Tabstrip Controls.There is also a tabstrip control wizard, which you can use instead of the method described below. The wizard takes you step by step through the procedure required to create a working tabstrip control.
For further information, refer to
Using the Tabstrip Control Wizard.
Procedure
Creating a tabstrip control in alphanumeric mode has two steps:
- Create a tabstrip area.
- Define tabstrip elements (pushbuttons and subscreen areas).
Defining the Tabstrip Area.
Position the cursor where you want the top left-hand corner of the tabstrip control to appear.
Choose Edit
®
Create elements
®
Tabstrip control.
The system displays the maximum possible size of the tabstrip control in the fullscreen editor.
Position the cursor where you want the bottom right-hand corner of the tabstrip control to be.
Choose Select Ctrl end to mark the end of the tabstrip control.
The attribute dialog box appears.
Enter the
tabstrip control attributes.
Choose Transfer.
The tabstrip control appears in the fullscreen editor according to the size and attributes you have specified. By default new tabstrip controls come with two tab titles.
Defining Tabstrip Control Elements
You add further tab titles using pushbuttons. A subscreen area must be assigned to each tab page.
- Select the tabstrip control.
The tabstrip control is now ready for editing.
- Choose Edit ®
Ctrl elements.
The tabstrip element dialog box appears.
- Under tab title, enter the field name for the new pushbutton that you want to create.
- Choose Attributes, or press
ENTER
.
Enter the attributes and choose Copy.
Enter the function code and function type of the pushbutton.
Repeat steps 3-6 for each additional pushbutton.
Under Subscreens, enter the field name of the subscreen area and confirm its attributes.
Under Reference subscreen, assign the appropriate subscreen areas to the pushbuttons.
Choose Transfer.
Result
You have now created a tabstrip control and assigned extra tab titles and subscreen areas to it. For an impression of how the tabstrip looks at runtime, you can simulate the screen.
(See
Testing Screens.)