function LoadTheme
function LoadTheme(pName: PChar; Forcereload: Boolean = False; Themeparts : TThemeParts = ALL_THEME_PARTS) : boolean;
function LoadTheme(Forcereload: Boolean = False; Themeparts : TThemeParts = ALL_THEME_PARTS) : boolean;
Exported by: SharpThemeApi.dll
Declared in: svn\common\libraries\SharpThemeApi\SharpThemeApi.pas
Parameters:
- pName: PChar (optional)
Name of the theme which should be loaded. If this parameter is not used the current theme will be loaded.
- Forcereload: Boolean (optional)
Force the theme data to be loaded no matter how often this already has been done in a short perios of time.
- Themeparts: TThemeParts (optional)
Set of theme parts which are going to be reloaded.
ALL_THEME_PARTS = [tpSkin,tpScheme,tpInfo,tpIconSet,tpDesktopIcon,tpDesktopAnimation]
tpSkin: skin data
tpScheme: scheme data
tpInfo: global theme data like name, author,...
tpIconSet: current sharpe icon set
tpDesktopIcon: SharpDesk? default icon settings
tpDesktopAnimation: SharpDesk? hover animation settings
tpWallpaper:: SharpDesk? wallpaper settings
Description:
Calling Loadtheme will make the SharpThemeApi dll file to load the theme specified in the pName parameter. If the theme is already loaded then the settings for the theme will be updated.
Examples
LoadTheme(); LoadTheme(False,[tpSkin,tpScheme]); LoadTheme('MyTheme',True,ALL_THEME_PARTS);
