Set focus to control programmatically or left mouse click? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

robblargent
Posts: 2
Joined: Tue Jun 14, 2011 4:18 pm

Set focus to control programmatically or left mouse click?

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.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Set focus to control programmatically or left mouse clic

Hi,

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?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
robblargent
Posts: 2
Joined: Tue Jun 14, 2011 4:18 pm

Re: Set focus to control programmatically or left mouse clic

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.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Set focus to control programmatically or left mouse clic

Hello,

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.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”