SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
SftTabs/OCX allows easy sharing of controls. A shared control is a control that appears on more than one tab page. It is the same control, same name, same event code, etc. By default, new controls that are added inside a tab control are always added to the current tab page and only appear on this page. If you switch to another page, the controls of that page are hidden and disabled.
When you switch to another tab page, SftTabs/OCX saves a list of all controls that were visible on the current page. For each active control, its Left, Top, Width and Height properties are saved. The Enabled property is also saved (if available) and set to False.
As the new tab page becomes active, its list of active controls (that was saved when this page was left) is restored. All controls that were visible are updated, their Left, Top, Width, Height and Enabled properties are restored.
SftTabs/OCX does not check that controls appear only on one tab page. Any control that is found visible when a page is left is added to the list of active controls. This means, that ANY control that is visible will be added to the list, even if it already has been added to the list of another tab page.
Shared controls must have the same size and position on each tab page. (You could of course override the sizes as a page becomes active in the Switched event). When using this method, keep in mind that the Left, Top, Width, Height and Enabled properties of each visible control are saved. They will be restored when the page becomes active again later.
Once a tab control has been added to a form, these are the steps to share a control between tab pages:
Important: Do not delete the control. Deleting the control will remove it from all tab pages.
If you are sharing a control between tab pages and you want to remove it from certain pages, follow these simple steps: