Sorry, lets try that again:

<Control Id="SQLServerTestConnectionButton" Type="PushButton" Height="18" 
Width="138" X="28" Y="209" Default="no" Text="Test connection..." TabSkip="no">
          <Condition Action="disable"><![CDATA[(DATABASE_WINDOWSAUTHENTICATION 
= "1" AND DATABASE_SERVERNAME = "" OR DATABASE_RNAME = "") OR 
(DATABASE_WINDOWSAUTHENTICATION = "0" AND DATABASE_USERNAME = "" OR 
DATABASE_PASSWORD = "" OR DATABASE_SERVERNAME = "" OR DATABASE_NAME = 
"")]]></Condition>
          <Condition Action="enable"><![CDATA[(DATABASE_WINDOWSAUTHENTICATION = 
"1" AND DATABASE_SERVERNAME <> "" AND DATABASE_NAME <> "") OR 
(DATABASE_WINDOWSAUTHENTICATION = "0" AND DATABASE_USERNAME <> "" AND 
DATABASE_PASSWORD <> "" AND DATABASE_SERVERNAME <> "" AND DATABASE_NAME <> 
"")]]></Condition>

<Control Id="textBoxUsername" Type="Edit" Height="14" Width="177" X="180" 
Y="159" Property="DATABASE_USERNAME" TabSkip="no">
          <Condition 
Action="disable">DATABASE_WINDOWSAUTHENTICATION="1"</Condition>
          <Condition 
Action="enable">DATABASE_WINDOWSAUTHENTICATION="0"</Condition>
        </Control>

-----Original Message-----
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: October-04-12 10:40 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Bug? Disable a control because another control is empty, 
enter text control is not enabled

Hi all,

I created a custom dialog... 

I have a button control that is disabled/enabled whether or not some text box 
controls are empty or have some text in them:
          <Condition Action="disable"></Condition>
          <Condition Action="enable"></Condition>

Here is one of my text box controls:
<Control Id="textBoxUsername" Type="Edit" Height="14" Width="177" X="180"
Y="159" Property="DATABASE_USERNAME" TabSkip="no">
          <Condition
Action="disable">DATABASE_WINDOWSAUTHENTICATION="1"</Condition>
          <Condition
Action="enable">DATABASE_WINDOWSAUTHENTICATION="0"</Condition>
        </Control>


I have a button control that is disabled if any text box is empty, if I type 
text in a control the button won't be enabled until I click into another 
control...

The text box control seems to think it is empty until you click into another 
control...

On the flip side, the button control isn't disabled if I empty the text box 
control until I click into another control...

Has this been logged before? Or did I do something incorrect?

Steve



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Bug-Disable-a-control-because-another-control-is-empty-enter-text-control-is-not-enabled-tp7581117.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM Deploy 
New Relic app performance management and know exactly what is happening inside 
your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and 
get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to