nopzixcross
Posts: 14
Joined: Mon Feb 20, 2017 11:38 am

How do I change Disable Text Edit Control?

I set property AI_CONTROL_VISUAL_STYLE for Edit color style.

How do I change Disable Text Edit Control?

Thanks.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How do I change Disable Text Edit Control?

Hello,

You could Disable/Enable a Text Control by following the steps:
- go to "Dialogs" page and select the control
- go to its "Control Conditions" tab
- create a new condition and select "Disable"/"Enable" action depending on your scenario

If this isn't helpful, please give us a detailed scenario of what you're trying to achieve.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nopzixcross
Posts: 14
Joined: Mon Feb 20, 2017 11:38 am

Re: How do I change Disable Text Edit Control?

Sorin wrote:Hello,

You could Disable/Enable a Text Control by following the steps:
- go to "Dialogs" page and select the control
- go to its "Control Conditions" tab
- create a new condition and select "Disable"/"Enable" action depending on your scenario

If this isn't helpful, please give us a detailed scenario of what you're trying to achieve.

Best regards,
Sorin
I set property AI_CONTROL_VISUAL_STYLE = 9012992;9670933;14138515;14138515 to set Text Edit(Enable) Green background and White border

How I do change Text Edit(Disable) to same color?
Disable Control.png
Disable Control.png (4.45 KiB) Viewed 4848 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How do I change Disable Text Edit Control?

Hello,

In order to modify the colors for a disabled control you should set the AI_CONTROL_VISUAL_STYLE_EX . This property must containt 3 integers separated by ";" character :

- the first one represents the background color of the disabled controls
- the second one represents the border color of the disabled controls
- the third represents the font color of the disabled controls

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nopzixcross
Posts: 14
Joined: Mon Feb 20, 2017 11:38 am

Re: How do I change Disable Text Edit Control?

Sorin wrote:Hello,

In order to modify the colors for a disabled control you should set the AI_CONTROL_VISUAL_STYLE_EX . This property must containt 3 integers separated by ";" character :

- the first one represents the background color of the disabled controls
- the second one represents the border color of the disabled controls
- the third represents the font color of the disabled controls

Best regards,
Sorin
I have changed but Disable Text Edit font size not same in Enable Text Edit

How to change disable text edit font size?
Disable Control2.png
Disable Control2.png (1.98 KiB) Viewed 4831 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How do I change Disable Text Edit Control?

Hello,

The text style could be configured from the Properties pane(on the right side).

The disabled control and the enabled control should have the same font size which could be configured in the "Text Style" field. Due to an Advanced Installer issue the disabled control doesn't use the Text Style configured in Properties pane, but instead uses a default text style with a smaller font. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

We will update this topic when the fix will be available.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: How do I change Disable Text Edit Control?

Hello,

This was fixed in version 14.4 of Advanced Installer released on October 26st, 2017.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”