开发者

In Flex, how do I create a CheckBox that can't be un-checked?

In Flex, how do I create a CheckBox that can't be un-checked? I run a function when the checkbox is clicked. If that function encounters an error, I want the state of the checkbox to remain the same. How do I do tha开发者_如何学Pythont?


You can use the enabled attribute to prevent the checkbox from being accessed once it's in the state you mentioned.

onFunctionError():void {
    yourCheckbox.enabled = false;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜