Theme Property (AButton)

Version 14/2026

Returns or sets the theme style of the button.

Syntax

Object.Theme [ =enTheme ]

The Theme property syntax has the following parts:

 

Name

Type

Description

Object

AButton

AButton object

enTheme

enumADrawTheme

drawing theme

Where

enumAFormDrawTheme can be one of the following:

 

Name

Value

Description

aDrawThemeDefault

0

Use the current form theme (Form.Theme) as the current theme

aDrawThemeWindows

1

Windows default theme

aDrawThemeGradientLight

2

Light gradient theme

aDrawThemeGradientDark

3

Dark gradient theme

aDrawThemeGradientGlossy

4

Glossy gradient theme

Comments

The Theme property changes the way the button is drawn.

Buttons (AButton controls) that their Theme property is set to aDrawingThemeDefault (0) will be redrawn and use the form Theme property value. If the form Theme is set to  aFormDrawThemeClassic then the AButton will be drawn as classic theme.

Here are some example showing the button using various settings:

Example

The following statement changes the AForm AButton with default theme to light  gradient while the OK button is set to dark gradient:

frm.Theme=aFormDrawThemeGradientLight

btnOK.Theme=aDrawThemeGradientDark

Applies to

AButton

See Also

Form.Theme, Form.XPStyle