2014-09-22 56 views
0

我正在处理自定义对话框。我有一个单选按钮控件,3个文本控件和2个编辑控件。我的问题是,上层控件似乎被禁用,无法编辑。我究竟做错了什么?我没有收到任何错误,我只是无法与其中一个编辑控件进行交互。单选按钮工作正常。为WiX安装程序设计GUI:编辑不是用户可编辑的

<Property Id="YESNO" Value="1" /> 

<Dialog Id="SkyBlueORNot" Width="370" 
    Height="270" 
    Title="Sky blue or not" 
    NoMinimize="no"> 

<Control Id="SupervisorUserControl" 
    Type="Text" 
    X="40" 
    Y="40" 
    Width="200" 
    Height="17" 
    Text="Is the sky blue?" />    

<Control Id="SkyBlue" 
     Type="RadioButtonGroup" 
     Property="YESNO" 
     Width="100" 
     Height="100" 
     X="50" 
     Y="60"> 
      <RadioButtonGroup Property="YESNO"> 
       <RadioButton Value="1" 
       Text="Yes" 
       Height="17" 
       Width="250" 
       X="0" 
       Y="0" /> 
       <RadioButton Value="2" 
       Text="No" 
       Height="17" 
       Width="250" 
       X="0" 
       Y="20" /> 
      </RadioButtonGroup> 
     </Control> 

    <Control Id="IP1Text" Type="Text" X="40" Y="100" Width="200" Height="17" Text="Enter IP Address1:" /> 
    <Control Id="IP1Edit" Type="Edit" Property="IP1" Text= "Cowabunga" Height="17" Width="100" X="40" Y="120" /> 

    <Control Id="IP2Text" Type="Text" X="40" Y="140" Width="200" Height="17" Text="Enter IP Address2:" /> 

    <Control Id="IP2Edit" Type="Edit" Property="IP2" Height="17" Text= "Cowabunga" Width="100" X="40" Y="160" /> 

    <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)"> 

    </Control> 
    <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> 

</Dialog> 

回答

0

想通了,它是无线电通信组在编辑控件元素内的可点击区域上产生问题。

我减小了radiobuttongroup元素的宽度&,直到它们不再干扰编辑元素的可点击区域。