gpt4 book ai didi

apache-flex - 弹性 : Is there any way to find find out when a ComboBox is open?

转载 作者:行者123 更新时间:2023-12-01 01:38:15 25 4
gpt4 key购买 nike

我可能在这里遗漏了一些东西,因为我认为这可能真的很容易,但是......

使用 Flex,您如何知道 ComboBox 何时打开?我确实发现这个组件调度的打开和关闭事件可能是片状的,所以我正在寻找更可靠的东西 - 它可能正盯着我的脸。

最佳答案

如何检查 dropDown 组件的存在或可见性?

dropDown 是 ListBase 类型的组件,可以通过 dropDown 访问。属性(property)。所以也许是这样的(我没有时间自己测试):

if (myComboBox.dropDown != null && myComboBox.dropDown.visible) {
// myComboBox is open
}
myComboBox.dropDown != null是一项安全检查,因此您在尝试访问 visible 时不会遇到运行时错误。空对象的属性。

关于apache-flex - 弹性 : Is there any way to find find out when a ComboBox is open?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/399595/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com