This function loads a theme from a file and returns the successor object of TTeTheme class in case if everything has passed successfully or nil if the theme cannot be loaded. LoadThemeFromFile can load all available for ThemeEngine themes, whether they are ThemeEngine or MS Visual Styles themes.
The name of the theme's file is transferred as a parameter, it must contain the full path and the extension to the file as 'c:themesxp_blue.mskn'. Besides, this function supports the alternative recording of the path the 'themesxp_blue.mskn' kind, in that case the function will make the substitution of the path from which the application is run. For example, if your application is located in the 'c:myprogram' catalogue, 'themesxp_blue.mskn' will be transformed into 'c:myprogramthemesxp_blue.mskn'. In other words you won't have to calculate the full path to the theme every time.
The returned object can be used for the theme activization (ChangeTheme procedure), for the recording to another file (SaveThemeToFile procedure) or a stream (SaveThemeToStream procedure) or otherwise.
More preferable method of theme loading is the use of the TTeThemeEngine component and ThemeFile properties.