613-518-1166 info@zimdatabases.com

ZIM Development Center (DC) for Zim 7

Using a Tab Control in a Display

< All Topics

Using a Tab Control in a Display


The tabbing of pages within a tab control relies on the field number of a frame. The page displayed when tab one is selected is in fact a frame with the field number 100. The second tab has a tab page/frame with the field number 200, and so on.

Zim forms can have multiple frames with the same field number enabling the developer to create complex tab controls. For example, when the first tab is selected two tab/pages frames (that are not overlapping) could be displayed simultaneously, if they both had a field number of 100.


A Tab Control can be easily modified for manipulation in a display. To display forms using tab selection, all widgets for that particular form must be in a frame assigned with the appropriate field number. For example, a tab control displays three different forms – Customers, Suppliers, and Products. The form fCustomer contains a frame, of which all Customer widgets are children. This frame has a field number of 100. The fSupplier form has a frame, of which all Supplier widgets are children. This frame has a field number 200.

Points to Remember

  • The tab control is normally constructed in a separate form from the other forms, although this is not a requirement. For example, the three form tab control described above (Customers, Suppliers, and Products) would use an additional form for the tab control object.
  • When constructing a tab control for use in a display, remember to clear the ‘Add tab pages to form’ check box. This stops the constructor adding the tab pages/frames to the current form. Tab pages/frames are added manually to the required forms.
  • Remember to add form numbers to the tab pages/frames.
  • Frames used as a tab page have no border or title.

Repeating Forms

Repeated forms can also be used in a tab control. Remember to make the widgets children of a tab page/frame. Assign the frame with the appropriate field number.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?

Submit a Comment

Your email address will not be published. Required fields are marked *

Table of Contents