Rearrange Tabs

This page describes how to add and rearrange tabs on a tab control.

Contents

Add tabs

Modifying the collection of tabs displayed in a tab control is done in the Tabs Editor. This is the design editor for the TabSetup property that holds the tab collection.

  1. In the design area select the tab control.
  2. In the properties toolbox click Edit Tabs...
  3. In the Tabs Editor dialog add the tab, and set the Name and Label properties.

Figure 1: The tab designer for the TabSetup property.

Rearrange tabs

To change tab order or remove a tab, the Tabs Editor must be used.

  1. In the design area select the tab control.
  2. In the properties toolbox click Edit Tabs...
  3. In the Tabs Editor dialog you can remove tabs or reorder them. Change the order of tabs by moving the tabs in the Members list by using the position arrows.

Attach detail window to a tab

It is possible to attach a detail window to a tab. The window in this case is a window of some type that is designed separately.

  1. In the design area select the tab control.
  2. In the properties toolbox click Edit Tabs...
  3. In the Tabs Editor dialog, select the desired tab and enter the name of the window to display on the tab in the Form property. Example: if you want to display the window named tbwCustomerOrderLine on a tab, enter tbwCustomerOrderLine in the Form property for the tab where you want to display it.

Note: It is possible to attach any type of window to a tab. If an attached window contains a data source that should act as child to the master, the relation between the data sources needs to be defined. In the simplest scenario where the master and detail source contains matching key attributes, the framework will automatically bind them together. In other cases custom where statements must be applied to the detail data source.