1. One option is to use the RB 10 Theme support to select a theme that reflects the user interface style that you prefer. See article below.
2. Another option is to create a Preview plug-in. See ppPreview.pas for the code to the ancestor and the default preview plug-in classes. A preview plug-in is a class that controls the Viewer, Outline, Toolbar and associated controls, etc.
3. Another option is to create a custom preview form. See RBuilder\Demos\Tutorials\Complete\Applications\Reporting
ReportBuilder 10 introduces support for Themes (Skins). There are a couple of options for specifying which theme is used.
1. Report Designer
From the Report Designer select View | Themes from the main menu and then select the theme that you would like to use. The specified theme will be stored in RBuilder.ini and used as the default theme the next time you run RB.
2. RBuilder.ini.
When deploying an application, you can deploy RBuilder.ini so that ReportBuilder will use a specific theme.
3. TppThemeManager
At run-time TppThemeManager can be used to programmatically use specify a theme.
TppThemeManager is defined in ppToolbarTBX.pas. Here are the public class methods.
TppThemeManager = class public class function GetCurrentThemeName: String; class procedure GetThemeNames(aThemeNames: TStrings); class procedure SavePreferences; class procedure SetCurrentTheme(aThemeName: String); end;
Example:
uses ppToolbarTBX;
TppThemeManager.SetCurrentTheme(Office2003');
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
1. One option is to use the RB 10 Theme support to select a theme that
reflects the user interface style that you prefer. See article below.
2. Another option is to create a Preview plug-in. See ppPreview.pas for the
code to the ancestor and the default preview plug-in classes. A preview
plug-in is a class that controls the Viewer, Outline, Toolbar and associated
controls, etc.
3. Another option is to create a custom preview form. See
RBuilder\Demos\Tutorials\Complete\Applications\Reporting
-------------------------------------
Tech Tip: ReportBuilder Themes
-------------------------------------
ReportBuilder 10 introduces support for Themes (Skins). There are a couple
of options for specifying which theme is used.
1. Report Designer
From the Report Designer select View | Themes from the main menu and then
select the theme that you would like to use. The specified theme will be
stored in RBuilder.ini and used as the default theme the next time you run
RB.
2. RBuilder.ini.
When deploying an application, you can deploy RBuilder.ini so that
ReportBuilder will use a specific theme.
3. TppThemeManager
At run-time TppThemeManager can be used to programmatically use specify a
theme.
TppThemeManager is defined in ppToolbarTBX.pas. Here are the public class
methods.
TppThemeManager = class
public
class function GetCurrentThemeName: String;
class procedure GetThemeNames(aThemeNames: TStrings);
class procedure SavePreferences;
class procedure SetCurrentTheme(aThemeName: String);
end;
Example:
uses
ppToolbarTBX;
TppThemeManager.SetCurrentTheme(Office2003');
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com