如何检查当前是否打开了 SWT 组合? [英] How to check if the SWT combo is currently opened?

查看:30
本文介绍了如何检查当前是否打开了 SWT 组合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 GUI 中有一个 SWT 组合框.是否可以检查组合框是否已打开?(我有一种机制可以刷新组合框中显示的状态,当用户打开它时,它有时会在用户选择之间跳转,并且算法认为很好,用户选择优先于其他所有内容).

I have an SWT combo box in my GUI. Is it possible to check if the combo box has been opened? (I've a mechanism which refreshes the state shown in the combo box, when a user opens it sometimes it jumps between user selection and that what the algorithm thinks is fine, the user selection has a priority over everything else).

推荐答案

Combo SWT 组件有方法 getListVisible() 如果组合下拉列表部分可见或不可见,它会返回标志.. 见 组合文档 了解详情.

Combo SWT component have method getListVisible() which returns flag if combo dropdown list part is visible or not.. see documentation for combo for details.

这篇关于如何检查当前是否打开了 SWT 组合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆