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
Defines the image object using a built-in, special purpose image.
Get | |||
VB | Style = object.Appearance As SftPictureImageConstants | ||
Put | |||
VB | object.Appearance = Style As SftPictureImageConstants |
object
Style
Defines the image object using a built-in, special purpose image.
Name | Value | Description |
---|---|---|
sftImageNone | -1 | None |
sftImageCheckboxNo | 0 | Checkbox - No |
sftImageCheckboxYes | 1 | Checkbox - Yes |
sftImageCheckboxUnknown | 2 | Checkbox - Unknown |
sftImageCheckboxNoDisabled | 3 | Checkbox - No, Disabled |
sftImageCheckboxYesDisabled | 4 | Checkbox - Yes, Disabled |
sftImageCheckboxUnknownDisabled | 5 | Checkbox - Unknown, Disabled |
sftImageRadioButtonNo | 6 | RadioButton - No |
sftImageRadioButtonYes | 7 | RadioButton - Yes |
sftImageRadioButtonNoDisabled | 8 | RadioButton - No, Disabled |
sftImageRadioButtonYesDisabled | 9 | RadioButton - Yes, Disabled |
sftImageUp | 10 | Up |
sftImageUpDisabled | 11 | Up, Disabled |
sftImageDown | 12 | Down |
sftImageDownDisabled | 13 | Down, Disabled |
sftImageSortAsc | 14 | Sort Ascending |
sftImageSortAscDisabled | 15 | Sort Ascending, Disabled |
sftImageSortDesc | 16 | Sort Descending |
sftImageSortDescDisabled | 17 | Sort Descending, Disabled |
The Appearance property defines the image object using a built-in, special purpose image.
The SftPictureObject.Type property is set to sftTypeBuiltin.
The SftPictureObject.Height and SftPictureObject.Width properties should be used to define the requested image size. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image dimensions.
This example adds a checkbox to the second tab. Clicking on the checkbox doesn't change the active tab (because of the call to CancelMode), but toggles the checkbox instead.
Private Sub Form_Load() With SftTabs1.Direct .Style = styleSftTabsModernTop .Tab(1).Image.Appearance = sftImageCheckboxNo End With End Sub Private Sub SftTabs1_TabClicked(ByVal DblClick As Boolean, ByVal TabClicked As Integer, ByVal TabArea As SftTabsLib.SftTabsTabAreaConstants) With SftTabs1.Direct If TabArea = tabareaSftTabsImage Then If .Tab(TabClicked).Image.Appearance = sftImageCheckboxNo Then .Tab(TabClicked).Image.Appearance = sftImageCheckboxYes .CancelMode ElseIf .Tab(TabClicked).Image.Appearance = sftImageCheckboxYes Then .Tab(TabClicked).Image.Appearance = sftImageCheckboxNo .CancelMode End If End If End With End Sub
See Also SftPictureObject Object | Object Hierarchy