开发者

Label enabled issue

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜