Setting a default control on a dialog - 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!

swearinb
Posts: 29
Joined: Fri Oct 24, 2008 3:22 pm

Setting a default control on a dialog

Hello,

I am having difficulty setting the default control on a dialog. I added a maskededit to the UserRegistrationDlg and I want that control to be the active control when the dialog is displayed. I added under the Control Conditions a new action of Default where the condition is 1=1 for that control. I also moved the control to the top of the Control Tab Order. What am I doing wrong and how do I fix this?


Also, when you set the Control Tab Order why do some of the controls become invisible?


Thanks,

Brad
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Setting a default control on a dialog

Hi Brad,

All you need to do is use the Control Tab Order dialog to set that control as first in tab order. Make sure it is the first control in the list that can have a tab order, not the first control in the list. This is because z-order and tab-order are the same. Setting it first means it will sit beneath all other controls, thus will appear hidden.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
swearinb
Posts: 29
Joined: Fri Oct 24, 2008 3:22 pm

Re: Setting a default control on a dialog

Thanks Gabriel!

That corrected the problem.

Return to “Common Problems”