单击时,Button如何显示菜单? [英] How would you make a Button display a Menu when clicked?
本文介绍了单击时,Button如何显示菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一些代码,使菜单出现在按钮旁边,当它被点击。
我需要什么代码?
I am looking for some code to make a Menu appear next to a button when it is clicked. What code would I need for this?
对不起,如果这听起来有点含糊。
Sorry if this sounds a bit vague.
推荐答案
为什么不使用NSPopUpButton?
Why not use NSPopUpButton?
这篇关于单击时,Button如何显示菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文