开发者

Label enabled issue

开发者 https://www.devze.com 2023-03-09 19:23 出处:网络
I set Label component enabled property to \"false\", it still can interactive, <mx:Label text=\"testEn开发者_运维问答able\" click=\"handleEnable()\" enabled=\"false\"/>

I set Label component enabled property to "false", it still can interactive,

<mx:Label text="testEn开发者_运维问答able" click="handleEnable()" enabled="false"/>

when I click the label, the handleEnable() can always be invoked, I want Label behaves like Button component(if set Button enabled, user can't interactive with it), so how can I do?


After setting the enabled property to false, some components still respond to mouse interactions such as mouseOver. As a result, to fully disable UIComponents, you should also set the value of the mouseEnabled property to false.

0

精彩评论

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