使用 glui 创建表
是否可以使用 glui 创建表格(数学表而不是厨房桌子)?如果可能,请指定该功能。 提前致谢。
Is it possible to create table(mathematical table not kitchen table) by using glui? Please specify the function, if possible.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我使用 glui 的经验,并再次查看文档,似乎没有办法创建表。
一种选择是仅将只读文本框打包在常规网格中。这有点模仿表格。
如果您遇到 glui 不够强大的情况,另一个选择是切换到 gtk 或 gtkmm 之类的东西。它仍然允许您渲染 opengl(通过 gtkglext),但它还允许您使用所有 gtk 小部件(这里是一个画廊:http://library.gnome.org/devel/gtk/2.21/ch02.html - 我也没有在那里看到表格)。
再次根据我的经验,与 glui 相比,gtk 更难开始使用,但我认为对于一个复杂的 gui 来说这是值得的。
From my experience with glui, and looking over the docs again, there doesn't seem to be a way to create a table.
One option is to just pack read only text boxes in a regular grid.. That would sort of poorly mimic a table.
Another option if you are getting to a point where glui simply isn't powerful enough is to switch to something like gtk or gtkmm. It would still allow you to render opengl (through gtkglext), but it would also enable you to use all of the gtk widgets (here's a gallery: http://library.gnome.org/devel/gtk/2.21/ch02.html -- not that I see a table there either).
Again from my experience, gtk is quite a bit harder to start using as compared to glui, but i think it's worth the effort for an involved gui.