Disable Flex DateField component from user input
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)
精彩评论