bobz
Posts: 1
Joined: Wed Jun 26, 2013 7:51 pm

Dialogs: Can I Use A Keypress Event (or something like it)

Here is the scenario:
I have a Database Configuration Dialog with two Edit Boxes, one for Password and one for PasswordCompare. When the values match (Password = PasswordCompare) I want to enable the "Next" button on the Dialog.

This is sort of working by setting Control Conditions on the "Next" button on the Dialog, BUT the user needs to tab out of the PasswordCompare Edit Box before those conditions are evaluated. This is being regarded as a bug by my QA, because the button does not get enabled when the passwords match.

What I need is a way to react to Keypress events on the Password Edit Box and the PasswordCompare Edit Box, and use them to set the Enabled attribute on the "Next" button appropriately, before the Edit Box controls lose focus.

I've done some searching and come up empty on this. Any examples or direction would be greatly appreciated.

Thanks!

Bob
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dialogs: Can I Use A Keypress Event (or something like i

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Unfortunately, this is the default behavior of the Windows Installer. The "Control Conditions" are not evaluated every time you write a character in the related edit boxes.

However, in order to achieve what you want, you can enable our Enhanced User Interface feature. You can enable it by going in the Settings tab from Theme page.

Also please keep in mind that your package will be automatically turned into an EXE package.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”