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 whether Windows themes can be used.
Get
VB.NET | Style = object.UseThemes As SftButtonThemesConstants |
VB | Style = object.UseThemes As SftButtonThemesConstants |
C#.NET | SftButtonThemesConstants Style = object.UseThemes; |
VC++ | enum SftButtonThemesConstants Style = object->UseThemes; enum SftButtonThemesConstants Style = object->GetUseThemes(); |
C | HRESULT object->get_UseThemes(enum SftButtonThemesConstants* Style); |
Put
VB.NET | object.UseThemes = Style As SftButtonThemesConstants |
VB | object.UseThemes = Style As SftButtonThemesConstants |
C#.NET | SftButtonThemesConstants object.UseThemes = Style; |
VC++ | enum SftButtonThemesConstants object->UseThemes = Style; void object->PutUseThemes(enum SftButtonThemesConstants Style); |
C | HRESULT object->put_UseThemes(enum SftButtonThemesConstants Style); |
object
Style
Defines whether Windows themes can be used.
Name | Value | Description |
---|---|---|
themesSftButtonNo | 0 | Windows themes are never used. |
themesSftButtonYes | 1 | Windows themes are used if available. |
themesSftButtonYesExcludeText | 2 | Windows themes are used if available. The button's caption (Text) is rendered using the defined colors and themes are ignored. Themes are only used for the button background. |
The UseThemes property defines whether Windows themes can be used.
Windows themes are only available on Windows XP and above. Older Windows versions do not support Windows themes and this property has no effect.
AxSftButton1.DropDownStyle = SftButtonDropDownStyleConstants.dropdownstyleSftButtonStandard
AxSftButton1.FillOrientation = SftButtonOrientationConstants.orientationSftButtonHorizontal
AxSftButton1.Orientation = SftButtonOrientationConstants.orientationSftButtonHorizontal
AxSftButton1.Pressed = False
AxSftButton1.ShowFocus = True
AxSftButton1.Text = "Code Sample"
AxSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter
AxSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter
AxSftButton1.UseThemes = SftButtonThemesConstants.themesSftButtonNo
' Behavior
AxSftButton1.AllowFocus = True
AxSftButton1.Bounce = SftButtonBounceStyleConstants.bounceSftButtonYes
AxSftButton1.ClickInterval = 100
AxSftButton1.DropDownDownClick = True
AxSftButton1.DropDownFollows = False
AxSftButton1.DropDownPressed = False
SftButton1.DropDownStyle = dropdownstyleSftButtonStandard
SftButton1.FillOrientation = orientationSftButtonHorizontal
SftButton1.Orientation = orientationSftButtonHorizontal
SftButton1.Pressed = False
SftButton1.ShowFocus = True
SftButton1.Text = "Code Sample"
SftButton1.TextAlignHorz = alignSftButtonCenter
SftButton1.TextAlignVert = alignSftButtonVCenter
SftButton1.UseThemes = themesSftButtonNo
' Behavior
SftButton1.AllowFocus = True
SftButton1.Bounce = bounceSftButtonYes
SftButton1.ClickInterval = 100
SftButton1.DropDownDownClick = True
SftButton1.DropDownFollows = False
SftButton1.DropDownPressed = False
axSftButton1.DropDownStyle = SftButtonDropDownStyleConstants.dropdownstyleSftButtonStandard;
axSftButton1.FillOrientation = SftButtonOrientationConstants.orientationSftButtonHorizontal;
axSftButton1.Orientation = SftButtonOrientationConstants.orientationSftButtonHorizontal;
axSftButton1.Pressed = false;
axSftButton1.ShowFocus = true;
axSftButton1.Text = "Code Sample";
axSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter;
axSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter;
axSftButton1.UseThemes = SftButtonThemesConstants.themesSftButtonNo;
// Behavior
axSftButton1.AllowFocus = true;
axSftButton1.Bounce = SftButtonBounceStyleConstants.bounceSftButtonYes;
axSftButton1.ClickInterval = 100;
axSftButton1.DropDownDownClick = true;
axSftButton1.DropDownFollows = false;
axSftButton1.DropDownPressed = false;
m_vButton->put_DropDownStyle(dropdownstyleSftButtonStandard);
m_vButton->put_FillOrientation(orientationSftButtonHorizontal);
m_vButton->put_Orientation(orientationSftButtonHorizontal);
m_vButton->put_Pressed(VARIANT_FALSE);
m_vButton->put_ShowFocus(VARIANT_TRUE);
m_vButton->put_Text(_bstr_t(_T("Code Sample")));
m_vButton->put_TextAlignHorz(alignSftButtonCenter);
m_vButton->put_TextAlignVert(alignSftButtonVCenter);
m_vButton->put_UseThemes(themesSftButtonNo);
// Behavior
m_vButton->put_AllowFocus(VARIANT_TRUE);
m_vButton->put_Bounce(bounceSftButtonYes);
m_vButton->put_ClickInterval(100);
m_vButton->put_DropDownDownClick(VARIANT_TRUE);
m_vButton->put_DropDownFollows(VARIANT_FALSE);
m_vButton->put_DropDownPressed(VARIANT_FALSE);
See Also SftButton Object | Object Hierarchy