Home
Theme Engine Online Help Prev Page Prev Page
Symbol Reference
Classes
TTeAdapter
TTeDefaultForm
TTeDefaultForm.Active
TTeDefaultForm.Animation
TTeDefaultForm.Blending
TTeDefaultForm.BorderIcons
TTeDefaultForm.BorderStyle
TTeDefaultForm.Dragging
TTeDefaultForm.Gravitation
TTeDefaultForm.MenuBar
TTeDefaultForm.MinimizeApplication
TTeDefaultForm.Performance
TTeDefaultForm.Shadow
TTeDefaultForm.SystemMenuOptions
TTeDefaultForm.TrayMenuLink
TTeDefaultForm.TrayMenuOptions
TTeDefaultForm.WindowMenu
TTeDefaultForm.WindowState
TTeForm
TTeForm.ThemeLink
TTeForm.ThemeObject
TTeManager
TTeManager.FontChangeOptions
TTeMDIChild
TTeMessage
TTeMessage.ShowButtonGlyph
TTeMessage.ShowHints
TTeMessage.ShowIconImage
TTeMessage.InputBox
TTeMessage.InputQuery
TTeMessage.MessageDlg
TTeMessage.MessageDlgPos
TTeMessage.MessageDlgPosHelp
TTeMessage.ShowMessage
TTeMessage.ShowMessageFmt
TTeMessage.ShowMessagePos
TTeThemeEngine
TTeThemeEngine.DeltaBrightness
TTeThemeEngine.DeltaHue
TTeThemeEngine.OnThemeChanged
TTeThemeEngine.ThemeBuilding
TTeThemeEngine.ThemeFile
TTeThemeEngine.ThemeIndex
TTeThemeEngine.ThemeList
TTeThemeLink
TTeThemeLink.ThemeBuilding
TTeThemeLink.ThemeFile
TTeThemeLink.ThemeIndex
TTeThemeLink.ThemeList
TTeThemeList
TTeThemeList.Themes
TTeThemePreview
TTeThemePreview.ThemeLink
TTeThemeStream
TTeThemeStream.ThemeStore
TTeThemeSwitcher
TTeThemeSwitcher.ShowBrowse
TTeThemeSwitcher.ShowNoTheme
TTeThemeSwitcher.ShowSeparator
TTeThemeSwitcher.TextBrowse
TTeThemeSwitcher.TextNoTheme
TTeThemeSwitcher.ThemeEngine
Functions
ChangeTheme
DrawControlBackground
GetDialogFilter
IsThemeAvailable
LoadThemeFromFile
LoadThemeFromStream
ReleaseTheme
RepaintThemedControls
SaveThemeToFile
SaveThemeToStream
Introduction
Features
Version History
License
Overview
Order Information
Order
Technical Support
Contact
Newsgroups
Technical Support
Usage
Faq
Getting Started
Install
ThemeEngine's Themes
Available themes
Create new building theme
Third-Party ThemeEngine using
Using TTeTheme
Using te_uxtheme
ThemeEngine messages
ThemeEngine Help
LoadThemeFromFile
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.

Declaration
function LoadThemeFromFile(AFileName: string): TteTheme;
File
te_theme

Copyright (c) 1997-2006. All rights reserved.