How to interact with control properties after a call to a managed action?

纵饮孤独 提交于 2019-11-28 12:41:35

问题


I have a managed action with returns bool when a button is pressed.

Depending on if true / false is returned I want to be able to change the properties of controls on the dialog. Not limited to just the text value.

Is this possible, for example the visibility, etc?


回答1:


It is possible, however you will have to make sure there is a set-property control event (after your managed code custom action do-event) that touches a property related to anything you want the UI to update. If you change a property value within the managed code, or via the wrapper InstallShield provides, the Windows Installer UI doesn't track the change and update in response.

So, for example, you could wire your return value to the property RETURNVALUE, and then add a control event that sets better named properties like MYCONTROLTEXT or SHOWMYCONTROL; the control or its conditions would be wired to those better named properties.



来源:https://stackoverflow.com/questions/36111448/how-to-interact-with-control-properties-after-a-call-to-a-managed-action

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!