2014-09-22 57 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元素的寬度&,直到它們不再幹擾編輯元素的可點擊區域。