Hi,

Here is what I want:
In MySettingDlg, I have a Edit control allow user to input a sting, the Next 
button will only be enabled when the string is not empty.
I thought it should be easy, but I've searched the document for long and still 
didn't find solutions.

The code :
<Control Id="EditServer" Type="Edit" X="40" Y="66" Width="280" Height="18" 
Property="SERVER_NAME">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" 
Default="yes" Text="!(loc.WixUINext)">
          <Condition Action="disable">
            <![CDATA[SERVER_NAME=""]]>
          </Condition>
          <Condition Action="enable">
            <![CDATA[NOT (SERVER_NAME="")]]>
          </Condition>
</Control>

There are two problems:

1)      The enable/disable status of the Next pushbutton only get updated when 
the Edit control lost focus. I wish it could get updated when text changed.

2)      How to trim the string?  I want to have condition like 
trim(SERVER_NAME)="", but it just don't work.

Thanks,
-Elfe
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to