Flex :禁用画布外观和感觉
Is there a way in Flex by which a disabled canvas looks exactly the same as an enabled canvas? I haven't been able to make sense of disabledOverLayAlpha and disabledColor properties for a Canvas component.
Is there a way in Flex by which a disabled canvas looks exactly the same as an enabled canvas? I haven't been able to make sense of disabledOverLayAlpha and disabledColor properties for a Canvas component.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@ Michael Todd:有很多富有想象力的方式来显示禁用状态,而不是使用默认的禁用颜色。 例如,您可能想要禁用 Canvas,但希望将子组件绑定到其父组件并显示其禁用状态,而不是轻视用户可能甚至不知道存在并且可能覆盖其中不适当区域的容器。与任何给定时间的内容进行比较。
@ dta:我正在使用一个将立即动态启用/禁用的画布,disabledColor属性不会影响disabledOverlay的颜色,使用backgroundDisabledColor代替,将disabledOverlayAlpha设置为0确实会使disabledOverlay 完全透明 - 因此组件的启用和禁用状态看起来完全相同。 disabledColor 属性更改 Canvas 的 textFormater 使用的颜色。
运行 Flex SDK 3.4
@ Michael Todd: There are many imaginative ways to show disabled status rather than using the default disabled over colour. For instance, you may want to disable a Canvas, but would prefer the child components to be bound to their parent and display their disabled states rather than make light of a container that the user may not even know exists and may cover an inappropriate area in comparison to the content at any given time.
@ dta: I'm working with a Canvas that will be dynamically enabled/disabled right now, the disabledColor property does not effect the colour of the disabledOverlay, use backgroundDisabledColor instead, setting disabledOverlayAlpha to 0 does make the disabledOverlay entirely transparent - thus the enabled and disabled states of the component look exactly the same. The disabledColor property changes the colour used by the Canvas's textFormater.
Running Flex SDK 3.4