“打开” 鼠标悬停时弹出菜单按钮?
我有弹出菜单按钮。 我想让鼠标悬停(在按钮或“V”部分上)弹出打开菜单。 我不关心按钮单击,
当单击另一个按钮时,我尝试执行 My_PopUpMenuButton.dispatchEvent(new MenuEvent(MenuEvent.ITEM_CLICK)) ,但这不起作用。
有任何想法吗? 谢谢!
I have PopUpMenuButton. I want to make it so that a mouseover (over either the button or the "V" part) pops open the menu. I don't care about the button click
I tried to do a My_PopUpMenuButton.dispatchEvent(new MenuEvent(MenuEvent.ITEM_CLICK)) when another button was clicked, but that didn't work.
Any ideas?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过直接在 mouseOver 上调用控件的 open() 方法,就像这样?
如果我误解了这个问题,或者您试图抑制其他行为,请回帖,我会密切关注。
Have you tried calling the control's open() method directly on mouseOver, like so?
If I've misunderstood the question, or if there's additional behavior you're trying to suppress, post back and I'll keep an eye out.
PopUpButton 中有方法 open控制:
There is method open in PopUpButton control: