LoadFromFile Method
Description
Loads a resource theme from a file. This is used to set Office 2007, Office 2007/2010 Ribbon, Office 2010, or Windows 7 appearances.
Syntax
Public Function LoadFromFile( _
ByVal [DllFileName](#) As String, _
ByVal [IniFileName](#) As String _
) As Boolean
Parameters
- DllFileName: Name of the resource file to use.
- IniFileName: Name of the resource from the specified DLL to load.
Return Type
Returns True if loaded successfully; False otherwise.
Remarks
LoadFromFile loads a resource file so that the control can use a theme in that DLL. You must specify both DllFileName and IniFileName.
To utilize these styles, the control must set the theme to xtpThemeResource or xtpThemeRibbon AFTER the resource DLL has been loaded. The list of supported styles is provided below. In the code sample section, there is a snippet of code to show how to use the Resource themes with each control.
See the Loading a Resource Theme Sample for code snippets.
Supported Styles as of Version 15.0
- Office2007.dll
- Office2007Aqua.ini
- Office2007Black.ini
- Office2007Blue.ini
-
Office2007Silver.ini
-
Office2010.dll
- Office2010Black.ini
- Office2010Blue.ini
-
Office2010Silver.ini
-
Windows7.dll
- Windows7Blue.ini
Note: You will need to include these DLL files in your installation if you use them.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.