SftPrintPreview/OCX 1.0

SftPrintPreview.UseThemes Property

Softel vdm, Inc.

Defines whether Windows themes are used (Windows XP and up).

Syntax       

Get

VB.NET

Boolean = object.UseThemes  As Boolean

VB

Boolean = object.UseThemes  As Boolean

C#.NET

bool Boolean = object.UseThemes;

VC++

VARIANT_BOOL Boolean = object->UseThemes;
VARIANT_BOOL Boolean = object->GetUseThemes();

C

HRESULT object->get_UseThemes(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.UseThemes   : WordBool;

Put

VB.NET

object.UseThemes = Boolean  As Boolean

VB

object.UseThemes = Boolean  As Boolean

C#.NET

bool object.UseThemes = Boolean;

VC++

VARIANT_BOOL object->UseThemes = Boolean;
void object->PutUseThemes(VARIANT_BOOL Boolean);

C

HRESULT object->put_UseThemes(VARIANT_BOOL Boolean);

Delphi

object.UseThemes := Boolean   : WordBool;

object

A SftPrintPreview object.

Boolean

Defines whether Windows themes are used (Windows XP and up).

Boolean

Description

True

Windows themes can be used, if available.

False

Windows themes are never used.

Comments

The UseThemes property defines whether Windows themes are used (Windows XP and up).

When defining the use of Windows themes, the application must use an application manifest to make use of the Common Controls version 6, otherwise the Page Setup dialog will use themes for some of the controls, but not for the entire dialog.

Windows themes are only available on Windows XP.  Older Windows versions do not support Windows themes and this property has no effect.


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