Version

Sharing Controls Among WinTabs

Note
Note

This section does not apply to WinTabStrip™ since all of its child controls are shared between tabs.

In contrast, WinTab™ creates a tab page control for each tab to support having different controls on each tab. However, there are situations where it is desirable to have one or more controls that appear on some or all of the tabs. The UltraTabControl facilitates this through the 'shared controls page'. This is an extra page that is automatically created to contain controls that are to be shared between tabs.

When an UltraTabControl is first added to a form at design-time the shared controls page is automatically created and occupies the entire client area of the element. At design-time it displays the string '[Shared controls page]'. Any controls placed on this page are automatically added to the SharedControls collection. When a tab is selected these controls are automatically re-parented to that tab’s tab page.

After tabs have been added, the shared controls page can be redisplayed by selecting the 'Show shared controls' design-time verb. There is also an 'Exclude shared controls…​' verb that displays the dialog shown below.

shows ultratabcontrol's exclude shared controls dialog

Here you can specify those shared controls that should not be re-parented to specific tabs. This allows easy maintenance of the ExcludedSharedControls collection that the UltraTab object exposes.