Change text of ImageButton based on other button click - Advanced Installer Community
iske
Posts: 11
Joined: Tue May 03, 2016 3:07 pm

Change text of ImageButton based on other button click

Hello,
I would like to implement the following behavior: After I clicked a button on a dialog, the text of an ImageButton should be changed from "Next" to "Research".

I have created a property for the Text button. On the other button I changed this property and then performed the "Refresh the current dialog" action. Unfortunately the text on the ImageButton is not refreshed.

As a test I tried it with a static text control. There the text update works without problems.

How can I adjust the text of an ImageButton at runtime?

Friendly greetings,
André
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Change text of ImageButton based on other button click

Hello André,

I am afraid what you want to achieve is not possible.

The "Image Button" control is not a default MSI control. Its' usage is possible through our "Enhanced User Interface" feature. Basically, this control is rendered by our .EXE boostrapper and its' logic is a little bit more complex.

Unlike the "Static Text" control, the "Image button" control does not have a property assigned to it. For instance, the static text control has a property assigned to it which stores the value of the control, therefore by changing the property's value, the control text is also changed.

Please let me know if there is anything else I could help you with and I will gladly assist.

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

Return to “Common Problems”