如何根据复选框选择启用/禁用组合框。我想要这样的方式,如果复选框被选中,那么组合框将被启用,如果复选框未被选中,那么组合框将被禁用。我没有找到任何关于将条件放入 Control of Type ComboBox 的线索。有什么建议么?????
问问题
1876 次
1 回答
1
您可以使用条件来启用或禁用基于复选框属性的组合框。
<Control Id="ComboBox_Test" Type="ComboBox" X="147" Y="60" Width="163" Height="16" Property="TEST">
<Condition Action="enable">TestCheckBox=1</Condition>
<Condition Action="disable">TestCheckBox <> 1</Condition>
</Control>
<Control Type="CheckBox" Id="CheckBox_Test" Width="105" Height="17" X="158" Y="172" Text="Test" CheckBoxValue="1" Property="TestCheckBox" />
编辑:
根据您的要求,它会是这样的。
<Control Id="AppPoolCombo" Type="ComboBox" Property="APPPOOLVALUE" Sorted="yes" ComboList="yes" X="165" Y="124" Width="149" Height="16">
<ComboBox Property="APPPOOLVALUE">
<ListItem Text="Default Application Pool" Value="Default Application Pool" />
<ListItem Text="Integrated" Value="Integrated" />
<ListItem Text="Classic" Value="Classic" />
</ComboBox>
<Condition Action="enable">TestCheckBox=1</Condition>
<Condition Action="disable">TestCheckBox <> 1</Condition>
</Control>
于 2013-07-11T10:07:12.287 回答