ICE34
ICE34 验证每个 RadioButtonGroup 控件上的每个单选按钮 在指定单选按钮组 RadioButton 表 的属性列中都有一个属性。 ICE34 验证此属性是否存在,并将其设置为 Property 表中的默认值, 它等于 RadioButton 表的 Value 列中组的单选按钮值之一。
单选按钮组必须具有默认选项,用户才能使用 TAB 键选择选项。 这是适当的用户辅助功能所必需的。
ICE34 报告缺少的表。
结果
如果存在指定无效属性的单选按钮,则 ICE34 会发布错误消息。
例
ICE34 报告所示示例的以下错误。
ICE34 错误 | 描述 |
---|---|
Control DialogA.Control2 必须具有属性,因为它的类型为 RadioButtonGroup。 | RadioButtonGroup 控件中,没有 间接控件 位集在 控件表的属性列中,该控件没有属性列中列出的属性。 |
也许不是使用 Property Property3 的 RadioButtonGroup 的有效默认值。 该值必须作为 RadioButtonGroup 表中的选项列出。 | Property 表的 Value 列中指定的属性有一个默认值, 该属性不是 RadioButton 表的 Value 列中指定的单选按钮组的值之一。 |
必须定义 PropertyB,因为它是 RadioButtonGroup 控件 DialogA.Control4 的间接属性 | 此 RadioButton 组引用的属性是间接属性,间接属性的值不是 RadioButton 组的选择之一。 |
可能不是属性 PropertyA 的有效默认值。 该属性是 Control DialogA.Control5 的间接 RadioButtonGroup 属性(通过 property Property5)。 | 通过控件引用的间接属性的值不是该 RadioButtonGroup 的默认值之一。 |
控制表(部分)
对话 | 控制 | 类型 | 属性 | 财产 |
---|---|---|---|---|
DialogA | Control1 | RadioButtonGroup | 0 | Property1 |
DialogA | Control2 | RadioButtonGroup | 0 | |
DialogA | Control3 | RadioButtonGroup | 0 | Property3 |
DialogA | Control4 | RadioButtonGroup | 8 | Property4 |
DialogA | Control5 | RadioButtonGroup | 8 | Property5 |
属性表(部分)
财产 | 价值 |
---|---|
Property1 | 是的 |
Property3 | 或 |
Property4 | PropertyB |
Property5 | PropertyA |
PropertyA | 或 |
RadioButton 表 (部分)
财产 | 次序 | 价值 |
---|---|---|
Property1 | 1 | 是的 |
Property1 | 2 | 现在 |
Property2 | 1 | 是的 |
Property2 | 2 | 不 |
Property3 | 1 | 是的 |
Property3 | 2 | 不 |
Property4 | 1 | 是的 |
Property4 | 2 | 不 |
PropertyA | 1 | 是的 |
PropertyA | 2 | 不 |
PropertyB | 1 | 是的 |
PropertyB | 2 | 不 |
若要修复此 ICE 报告的错误,请检查以下内容:
- 没有间接属性集的每个 RadioButton 控件条目都有一个属性列在“属性”列中:
- 每个此类属性在 RadioButton 表中至少有一个对应的条目。
- 属性表中定义了每个此类属性,其值是 RadioButton 表中的选择之一。
- 使用间接属性集的 RadioButton 控件的 Property 列中引用的每个属性都在 Property 表中定义。
相关主题