We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

CaMat
Posts: 18
Joined: Wed Jun 22, 2022 11:48 am

Text is not visible on back button in air theme

Hi

I am using Advanced Installer in version 19.5.

I have a problem with Back button in air theme. I want to change it apperance to look like Next or Cancel button so I modified it Display Indirect Property from BackButtons to NextCancelButtons. These properties contains default images for image button for this theme. But when I add text on it, build solution and launch the created installer there is no text on Back button.

Button in Advanced Installer:
back2_in_installer.png
back2_in_installer.png (747 Bytes) Viewed 2808 times
Rendered button:
back2_rendered.png
back2_rendered.png (381 Bytes) Viewed 2808 times
I tried two workarounds but they didn't work:
1) Added new button with the same events as Back button. Works perfectly except in Pre-install UI, because I can't choose WelcomePrereqDlg in display dialog action:
no_welcomeprereqdlg.png
no_welcomeprereqdlg.png (6.91 KiB) Viewed 2808 times
So I can't simulate Back button behaviour on PrerequisitesDlg.

2) I tried add Text control on it, but even it's ordered on top of every control, Back button cover it completly.

How can I add text on Back button? Another themes don't have image buttons as default navigation buttons or they are not suitable for my project.

Best regards,
Mateusz
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Text is not visible on back button in air theme

Hi Mateusz and welcome to our forums,
I have a problem with Back button in air theme. I want to change it apperance to look like Next or Cancel button so I modified it Display Indirect Property from BackButtons to NextCancelButtons. These properties contains default images for image button for this theme. But when I add text on it, build solution and launch the created installer there is no text on Back button.
In order to achieve this, you can copy the "Back" button from the "WelcomePrereqDlg" dialog and past it on the "PrerequisitesDlg" dialog.

After that, you need to change the "Visible" and "Enabled" attributes to "True":
button attributes.png
button attributes.png (61.46 KiB) Viewed 2798 times
1) Added new button with the same events as Back button. Works perfectly except in Pre-install UI, because I can't choose WelcomePrereqDlg in display dialog action:
As a workaround for this, you can select the existing "Back" button and copy the event from there:
welcomeprereq event.png
welcomeprereq event.png (98.46 KiB) Viewed 2798 times

and past it on the "Published Events" of your new button:

my button.png
my button.png (25.95 KiB) Viewed 2798 times
2) I tried add Text control on it, but even it's ordered on top of every control, Back button cover it completly.
You can add your desired text for the button from the "Properties" right pane --> "Display Text":

button text.png
button text.png (93.83 KiB) Viewed 2798 times

Attached you can find a sample project with the above steps. Please have a look on it and let us know if you have any questions.

Best regards,
Liviu
Attachments
air theme sample.aip
(28.68 KiB) Downloaded 195 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CaMat
Posts: 18
Joined: Wed Jun 22, 2022 11:48 am

Re: Text is not visible on back button in air theme

Thank you for your anserw and help.
Solution with copying event works!

Best regards,
Mateusz
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Text is not visible on back button in air theme

You're always welcome, Mateusz!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”