HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

UseThemes Property, SftButton Object

Defines whether Windows themes can be used.

Syntax

Get

VB.NETStyle = object.UseThemes As SftButtonThemesConstants
VBStyle = object.UseThemes As SftButtonThemesConstants
C#.NETSftButtonThemesConstants Style = object.UseThemes;
VC++enum SftButtonThemesConstants Style = object->UseThemes;
enum SftButtonThemesConstants Style = object->GetUseThemes();
CHRESULT object->get_UseThemes(enum SftButtonThemesConstants* Style);

Put

VB.NETobject.UseThemes = Style As SftButtonThemesConstants
VBobject.UseThemes = Style As SftButtonThemesConstants
C#.NETSftButtonThemesConstants object.UseThemes = Style;
VC++enum SftButtonThemesConstants object->UseThemes = Style;
void object->PutUseThemes(enum SftButtonThemesConstants Style);
CHRESULT object->put_UseThemes(enum SftButtonThemesConstants Style);

object

A SftButton object.

Style

Defines whether Windows themes can be used.

NameValueDescription
themesSftButtonNo0Windows themes are never used.
themesSftButtonYes1Windows themes are used if available.
themesSftButtonYesExcludeText2Windows 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.

Comments

The UseThemes property defines whether Windows themes can be used.

See Also SftButton Object | Object Hierarchy


Last Updated 08/23/2026 - (email)
© 2026 Softel vdm, Inc.