Hi John,

Thanks for your suggestions Jacob and John
You mean to say we need to validate everything through custom action after
clicking the Next button.
It will not work with the WIX inbuilt condition.

Regards
Balakrishnan.S


-----Original Message-----
From: John Cooper [mailto:jocoo...@jackhenry.com] 
Sent: 10 October 2014 22:26
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] How to enable/disable NEXT button on textbox
keypress event

The problem is inherent in Windows Installer Service Controls:  they don't
expose focus change events.  As Jacob says, to get full WPF control, you
need to write your own custom bootstrapper.  The Windows Installer Service
controls just won't give you that degree of control.

It's not WiX specific, this is a problem in general with the Windows
Installer Service controls.

--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing
Development Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:
431050 |jocoo...@jackhenry.com



-----Original Message-----
From: Bala [mailto:balakrish...@ameexusa.com]
Sent: Friday, October 10, 2014 11:49 AM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] How to enable/disable NEXT button on textbox keypress
event

Hi

I have a dialog which has two edit boxes. One for username(USERNAME) and the
other for the password(PASSWORD). I am doing a small validation like "Next"
button will be disabled until the user types something in the username
password edit text box and my wix code snippet is written below:-

Wix code :-

<Control Id="UserNameLabel" Type="Text" X=.... Text=" User Name:" />
<Control Id="UserNameEdit" Type="Edit" X=..Property="NAME" Text="{80}" />
<Control Id="PasswordLabel" Type="Text" X......... Text=" Password:" />
<Control Id="PasswordEdit" Type="Edit" X="...Property="PASSWORD"
Password="yes" Text="{80}" />
           
 <Control Id="Back" Type="PushButton" X="....." Text="&amp;Back"> </Control>
<Control Id="Next" Type="PushButton" X="... Default="yes" Text="&amp;Next">
            <Condition Action="enable" ><![CDATA[NAME AND
PASS]]></Condition>
            <Condition Action="disable"><![CDATA[NOT NAME OR NOT
PASS]]></Condition>  </Control>
           
<Control Id="Cancel" Type="PushButton" X=... Text="Cancel">
              <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>

However, the above code does not work for the keypress event, it works only
when I move out of password edit box (e.g. When I type something in the
password edit box, "Next" button does not get enabled. It gets enabled when
the focus is moved out of the password edit box).

Is it possible to enable the "Next" as soon as user types something in the
password edit box like Password: is "test123" & as user type password "te"
only so "Next" button enable automatically.

Thanks & Regards

Balakrishnan.S

----------------------------------------------------------------------------
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI
DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you
Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI
DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are
intended exclusively for the individual or entity to which it is addressed.
The message, together with any attachment, may contain confidential and/or
privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or
distribution is strictly prohibited. If you have received this message in
error, please immediately advise the sender by reply email and delete all
copies.


----------------------------------------------------------------------------
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI
DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you
Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI
DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to