SftButton/OCX 2.5

SftButton.UseThemes Property

Softel vdm, Inc.

Defines whether Windows themes can be used.

Syntax       

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);

Delphi

Style := object.UseThemes  : TOleEnum;

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);

Delphi

object.UseThemes := Style  : TOleEnum;

object

A SftButton 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.

Comments

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.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com