RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Themes.ThemeServicesClass Variable

ThemeServicesClass contains the metaclass reference for TThemeServices.

Pascal
ThemeServicesClass: TThemeServicesClass = TThemeServices;
C++
TThemeServicesClass ThemeServicesClass = TThemeServices;

ThemeServicesClass is used internally by the theme services. When the singleton instance of TThemeServices is created, ThemeServicesClass is used. You are allowed to change the value of ThemeServicesClass, but you must do that before the application loads any VCL unit. All VCL units invoke the ThemeServices routine that creates the instance of TThemeServices. Changing the value of the ThemeServicesClass variable afterwards does not yield any result. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!