Is there any way to set focus to a control programmatically (i.e. based on an event or condition)? I am able to enabled\disable controls based on conditions, but not set focus. Additionally, for some reason we are unable to left click on a text box and have it received focus.
I'm afraid that this cannot be done. Can you please give me more details about why you need it? Perhaps there is a workaround. Regarding the text box, I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it?
It would make sense to set focus to another control when a button is clicked, a check-box is checked or a radio button is selected. For example I have a dialog used to either select an existing IIS Application Pool or create a new one. If the use selects the "Create New Application Pool" Radio Button I want to set input focus to a text box to collect the Application Pool name.
In response to left clicking on a control, I have this issue with, at least, text boxes, list boxes and combo boxes (i.e. they do not receive focus on left click). I can send the project file.
Regarding the problem with the textbox, this is caused by a know bug in Windows Installer. The solution is to set the flag "Has Border" of the radio button group to true
or to enable "Enhanced User Interface" from Themes page.
FOLLOW US
Get the latest news in Application Packaging