如何使用 GTKada 创建撕下菜单?
问题是不言自明的,如何使用 GTKAda 创建撕下菜单?我无法让它发挥作用。
谢谢。
The question is self-explaining, how to create a tearoff menu using GTKAda? I can't make it work.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您将代码添加到您的问题中,它会更具描述性。
我写了一些代码来演示 GTKAda 撕下菜单的用法,这并不难,但可能很难找到有关它的文档:
declare/begin/end
结构允许您在运行时声明变量。boolean
参数允许您在创建菜单时决定是否希望它成为可撕式菜单。该函数只是创建菜单,因此您必须稍后将其添加到菜单栏(例如)。If you added the code you have to your question it would be more descriptive.
I've written a bit of code to demonstrate the usage of the tear off menu with GTKAda, it's not so difficult, but it may be hard to find documentation about it:
The
declare/begin/end
structure allows you to declare variables in run time.The
boolean
parameter allows you decide if you want it to be a tear off menu when you create it. The function just creates the menu so you'd have to add it to a menu bar (for example) later.不确定这是否是您要找的,但是 GtkAda 参考手册 说:
所以听起来好像你不需要做任何事情。
Not sure if this is what you are looking for, but the GtkAda reference manual says:
So it sounds as if you don't have to do anything.