EmployeeTabControl

Now that we have created the tab page and developed the XML parsing code required to display data in the drop-down list, we can define the implementation details for displaying the tab page within a tab control. We will achieve this by creating a class called EmployeeTabControl, and Figure 20-12 shows the code required.

You can see from Figure 20-12 how little code is required in the EmployeeTabControl to create and display a tab control that consists of the EmployeeTabPage class. All that is required is implementation code to set the correct width and height, and then a call to the {add-pane} method with a declaration of the EmployeeTabPage class. Once this has been instantiated, we change the visible? property to false for ...

Get Enterprise Curl now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.