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 picture object as a color sample.
VB | object.SetColorSample(ByVal SampleColor As OLE_COLOR, ByVal FrameColor As OLE_COLOR) |
object
SampleColor
Defines the color sample.
FrameColor
Defines the border color.
The SetColorSample method defines the picture object as a color sample.
The SftPictureObject.Type property is set to sftTypeColorSample.
The SftPictureObject.Height and SftPictureObject.Width properties should be used to define the requested image size.
The color sample can also be defined using the SftPictureObject.SampleColor and SftPictureObject.FrameColor properties.
This example adds a color sample to the first tab. Clicking on a button changes the colors.
Private Sub Command1_Click() With SftTabs1.Direct .Tab(0).Image.FrameColor = vbGreen .Tab(0).Image.SampleColor = vbRed End With End Sub Private Sub Form_Load() With SftTabs1.Direct .Style = styleSftTabsModernTop .Tab(0).Image.SetColorSample vbBlue, vbRed End With End Sub
See Also SftPictureObject Object | Object Hierarchy