Flex :禁用画布外观和感觉

发布于 2024-07-27 22:49:18 字数 218 浏览 5 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百思不得你姐 2024-08-03 22:49:19

@ 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文