nvsoft
Posts: 19
Joined: Sat Feb 12, 2011 9:34 am

New dialogs buttons using theme

Hi,

I applied the "Spring" theme to my AI project and created a new dialog under the "First Time Install" Sequence.

When running the installer, the buttons (e.g. back & next) on original dialogs looks theme'ed (blue background) but buttons on dialogs I created looks plain (white\gray background).

How can I apply the theme to custom dialogs as well?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: New dialogs buttons using theme

Hello,

The Spring theme is a html theme and you can customize the dialogs any way you want.

For example take the "WelcomeDlg":
  • go to the Dialogs Page and select it in the sequence tree
  • in the Properties pane expand the [WelcomeDlg] combo box and from the list select HtmlHost
  • the Properties pane will refresh and you will be able to see the Display -> File property. This property is set with the path location of the html file included in Files and Folders page when the Spring theme was enabled. To see all our html predefined samples, from the Files and Folders Page navigate to the Windows Volume -> Temporary -> [|Product Code] -> Spring folder.
Simply follow the way our predefined dialogs are built and create your own.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nvsoft
Posts: 19
Joined: Sat Feb 12, 2011 9:34 am

Re: New dialogs buttons using theme

My question was about a new (custom) dialog I created and not about the built-in dialogs.

After applying the Spring theme, I right click on one of the built-in dialogs under "First Time Install" and select "New Dialog".

The new dialog does not have an HtmlHost item in its properties combo.

I created an HtmlHost by selecting it from the Toolbox and creating an HtmlHost for my new dialog.
I changed its type to "file" and tried applying several of the existing html files but when testing the installation UI the buttons in the new custom dialog are still un-themed.

BTW, I don't think I should be editing HTML files to apply a theme. If the user selects a theme, he must want all buttons in all dialogs (including dialogs he'll create) to look the same.

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: New dialogs buttons using theme

Hello,

Unfortunately, we don't have any predefined support for adding a themed "New Dialog" in the sequence from the Dialogs Page when using the Spring theme.

The purpose of the predefined dialog example I mentioned in my last post is a guideline for creating your own custom dialogs. Indeed you must add the HtmlHost control for the new dialog from the Toolbox but its Display section similar to our predefined one. Also, you can use one of our predefined dialog's associated html file as a template when creating the one for your dialog.
BTW, I don't think I should be editing HTML files to apply a theme. If the user selects a theme, he must want all buttons in all dialogs (including dialogs he'll create) to look the same.
The intended functionality for the Spring theme is to use html files when creating the dialogs. This way the user can customize the dialogs any way they see fit from the html file.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”