开发者

Disable Flex DateField component from user input

开发者 https://www.devze.com 2023-04-05 09:56 出处:网络
I have a DateField component in Flex and I want to stop any user input. If I set the 开发者_运维技巧editable to \"false\" then it stops users changed the bits of the DateField box. It does NOT however

I have a DateField component in Flex and I want to stop any user input. If I set the 开发者_运维技巧editable to "false" then it stops users changed the bits of the DateField box. It does NOT however stop them from clicking on the calendar icon next to it and updating the date. Is it possible to disable this?

I basically want the component to be read only under some circumstances but not for it to have any alpha overlay. Therefore I want to use editable rather than enabled.

Thanks for any help Richard


You can use enabled, and then set the styles disabledColor to 0x000000 and disabledSkin to ScrollArrowSkin (The default for DateField, upSkin)

0

精彩评论

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

关注公众号