2015-05-13 95 views
0

在下面的代碼我想,當我們選擇單選框,但不改變基於單選按鈕的變化

<Control Id="radioButtonGroupBox1" Type="RadioButtonGroup" 
     Property="INSTALL_CUSTOMSCALE" Height="34" Width="64" X="48" Y="99"> 
     <RadioButtonGroup Property="INSTALL_CUSTOMSCALE"> 
      <RadioButton X="5" Y="2" Height="15" Width="56" 
           Text="Custom" Value="Custom" /> 
      <RadioButton X="5" Y="18" Height="15" Width="56" 
           Text="Scaleout" Value="Scaleout" /> 
     </RadioButtonGroup> 
     <Publish Property="CUSTOM_OPTION" Value="Server1" ></Publish>  

</Control> 
<Control Id="cmbCustomOption" Type="ComboBox" Property="CUSTOM_OPTION" 
      Height="16" Width="166" X="116" Y="101" > 
    <ComboBox Property="CUSTOM_OPTION"> 
     <ListItem Text="Select..." Value="Select..." /> 
     <ListItem Text="Server1" Value="Server1" /> 
     <ListItem Text="Server2" Value="Server2" /> 
     <ListItem Text="Server3" Value="Server3" /> 
     <ListItem Text="Server4" Value="Server4" /> 
    </ComboBox> 

</Control> 

,以及如何設置組合框不可編輯更改組合框值維克斯installer-更改組合框的值(只讀)

+0

對於更新組合框控件這並回答你 題? - http://www.advancedinstaller.com/user-guide/tutorial-combobox-listbox.html#combolist-twin-dialog – jbudreau

回答

0

要設置組合框不可編輯,只需加上「ComboList = YES

<Control Id="cmbCustomOption" Type="ComboBox" Property="CUSTOM_OPTION" Height="16" 
      Width="166" X="116" Y="101" ComboList="yes"> 
      <ComboBox Property="CUSTOM_OPTION"> 
      <ListItem Text="Select..." Value="Select..." /> 
      <ListItem Text="Server1" Value="Server1" /> 
      <ListItem Text="Server2" Value="Server2" /> 
      <ListItem Text="Server3" Value="Server3" /> 
      <ListItem Text="Server4" Value="Server4" /> 
      </ComboBox> 
</Control>