Placeholder text formatting - Advanced Installer Community
stefan_riediger
Posts: 33
Joined: Fri Feb 18, 2022 4:07 pm

Placeholder text formatting

Dear Advanced Installer Team,

currently the placeholder text in an edit box is formatted cursive black.
Is it possible to have different color (e.g. light grey) for the placeholder text, without changing the "real" text color?
The goal is that the user can distinguish more clearly between the placeholder text and the text he/she entered.

best regards,
Stefan
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Placeholder text formatting

Hello Stefan,

I am not quite sure I fully understand your scenario here.

If possible, could you please forward me some more details (some screenshots may be really helpful here) so I can further investigate this?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stefan_riediger
Posts: 33
Joined: Fri Feb 18, 2022 4:07 pm

Re: Placeholder text formatting

Hi Catalin,

if I create a new setup with version 19.1. the placeholder feature does not work at all, therefore I describe the problem in our current setup.

One dialog contains an edit control
PlaceHolder_AdvancedInstaller_EditControl.png
PlaceHolder_AdvancedInstaller_EditControl.png (6.16 KiB) Viewed 4106 times
The edit control has the placeholder text set to

Code: Select all

mongodb://[\[]username:password@[\]]mongoDbHost[\[]:port1[\]]
PlaceHolder_AdvancedInstallerProperties2.png
PlaceHolder_AdvancedInstallerProperties2.png (150.01 KiB) Viewed 4106 times
Now I press either the Test Installation UI button from the Ribbon, or I run the setup.

The default value is mongodb://, when I remove the default text and move the focus to a different control, the placeholder text is shown and formatted cursive black.
PlaceHolderText_cursive.png
PlaceHolderText_cursive.png (24.77 KiB) Viewed 4106 times
Beside the problem that the feature does not work with a newly created setup. It would be great if I could specify the colour of the font. As an example see the search box on the top of this community forum page. There the word Search is also grey.

best regards,
Stefan
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Placeholder text formatting

Hello Stefan,

Thank you for the explanation!

Now I understand your scenario.

First of all, let's address this:
if I create a new setup with version 19.1. the placeholder feature does not work at all, therefore I describe the problem in our current setup.
Most likely, this does not work because you have the "Enhanced User Interface" option disabled in your new setup. To enable it, please go to "Themes" page --> "Settings" tab --> "Use Enhanced User Interface" set to "Always".

Now, regarding this:
The default value is mongodb://, when I remove the default text and move the focus to a different control, the placeholder text is shown and formatted cursive black.
and this:
Beside the problem that the feature does not work with a newly created setup. It would be great if I could specify the colour of the font. As an example see the search box on the top of this community forum page. There the word Search is also grey.
You can achieve what you want by setting the "Text Style" for your control. In your first screenshot, under "Text Style", there is a "Text Style" field which will let you set it.

The text styles can be found in the "Themes" page --> "Text Styles" tab. There, you have some default ones, but you can also create new ones.
DlgFontBold.png
DlgFontBold.png (112.22 KiB) Viewed 4095 times

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stefan_riediger
Posts: 33
Joined: Fri Feb 18, 2022 4:07 pm

Re: Placeholder text formatting

Hello Catalin,

Thank you for the detailed answer.
The Use Enhanced User Interface as well as the Text Style works exactly as you described and what I wanted to achieve.
So easy and straight forward. I did not know why I haven't found the solution in the first place.

best regards,
Stefan
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Placeholder text formatting

You are always welcome, Stefan!

I am glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”