JavaScript Editor js editor     Web development 



Main Page

File: ...\Samples\Solution\Toledo\Themes.scx

This sample demonstrates different levels of Visual FoxPro support for Windows XP Themes. Themes are turned on by default.

Visual FoxPro supports Windows XP themes at three levels:

Themes Support at the Application Level

In this sample, you can turn Themes on in the entire Visual FoxPro application using the SYS(2700) - Enables Windows XP Themes function by selecting Enable Themes at the application level - SYS(2700), which uses the following code:

В Copy Code
SYS(2700,1)

To turn Themes off, pass a zero (0) as the second parameter to SYS(2700).

В Copy Code
SYS(2700,0)

To turn Themes on using the _SCREEN variable, select Enable Themes at the application level - _SCREEN.Themes, which sets _SCREENВ Themes to True (.T.):

В Copy Code
_SCREEN.Themes = .T.

To turn Themes off using _SCREEN, set _SCREENВ Themes to False (.F.):

В Copy Code
_SCREEN.Themes = .F.

For more information, see SYS(2700) - Enables Windows XP Themes and Themes Property.

Themes Support at the Form Level

In this sample, to turn Themes on at the form level, select Enable Themes at the form level, which sets the form's Themes property to True (.T.):

В Copy Code
ThisForm.Themes = .T.

Themes Support at the Control Level

You can also turn on Themes support for individual controls. Turning Themes off at the control level overrides the Themes setting at the application or form level. Depending on the control, you can set Themes support through the Themes or Style properties.

For more information, see Style Property.

See Also



JavaScript Editor js editor     Web development