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
This section describes how to add a button control to a dialog using Visual Studio.
To add a SftButton/DLL control to a dialog, use the "Custom Control" toolbar button. Click on the button and then the dialog being designed to add a control.
Once a custom control has been added to a dialog, you can edit the control properties by using the View, Properties... menu command.
To define a SftButton/DLL control, enter the class SftButtonControl30 in the edit field labeled Class. Enter the button's label in the Caption field (optional; the label can also be set later through SFTBUTTON_CONTROL).
To enter a SftButton/DLL window style in the User Control Properties dialog, use the following list to add the desired style values and enter the resulting hexadecimal value in the field marked Style.
| Style | Value | Description |
|---|---|---|
| WS_CHILD | 0x40000000 | Creates a child window. Usually required. |
| WS_DISABLED | 0x08000000 | Creates a button control that is initially disabled. |
| WS_GROUP | 0x00020000 | Specifies the first control of a group of controls. |
| WS_TABSTOP | 0x00010000 | Specifies a control that can receive the keyboard focus when the user presses the TAB key. |
| WS_VISIBLE | 0x10000000 | Creates a button control that is initially visible. Usually required. |
The button control can be further customized at run-time by populating a SFTBUTTON_CONTROL structure and passing it to SftButton_SetControlInfo.
In the dialog test mode offered by Visual Studio, the SftButton/DLL control will not be displayed. Instead, a gray box will show the location of the control. When using the Tab key to test the tab stops, the simulated SftButton/DLL control will not receive the input focus and appear not to have a tab stop defined.
