| 资源简介: |
ExpressPageControl:页面控制。 The tab control contains a set of tabs and a client area. The client area of the control can contain any number of other controls. Note that unlike the page control, the tab control抯 client area is a single panel. Thus, you cannot specify different page contents for different tabs (unless you change the page content dynamically in code). The tab control is most likely to be used if you want the same set of controls to be displayed within its page. The content of controls can be dynamically changed by handling the OnChange event. Thus, one of the common applications of the tab control is to display dataset records. Tabs display values of the dataset field that can identify a record. Controls within the page display values of other fields from the selected record. Please refer to the Using the Tab Control to Display Dataset Records topic for an example of using the tab control in this manner. The image below displays the tab control after completing the steps listed in that topic. You can also create more complex structures using the tab control. See the image below for an example of using the tab control within other tab controls. The page control provides the same features as the tab control. It also contains a set of tabs and a client area. The only difference is that the page control provides a separate page panel for each tab within it. Thus, you can customize the content of each page separately by dropping controls onto it. When switching between tabs, the control automatically displays the corresponding page. Use the page control if you need different set of controls to reside on each separate page. Using this control allows you to break controls needed in your application into categories. This also enables you to save space on the form. See the image below for examples of using the page control. |