Gtk Widget进入Winform [英] Gtk Widget into a Winform

查看:158
本文介绍了Gtk Widget进入Winform的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用System.Windows.Forms将Gtk小部件嵌入到应用程序中?感谢!

Is it possible to embed a Gtk widget into an application using System.Windows.Forms? Thanks!

推荐答案

这两个工具包都使用自己独立的UI Mainloop来处理事件(如鼠标移动,按钮等等) )。因此,混合两者实际上是不可能的。尽管几年前在Gtk#邮件列表上讨论了试图使用自定义主循环来抽取每个工具包的事件处理以实现这种方法,但我认为它没有任何稳定或有用的东西。

Both toolkits use their own separate "UI Mainloop" to process events (such as mouse moves, button presses, etc.). As such, mixing the two is effectively impossible. Although there was talk on the Gtk# mailinglist several years ago about attempting to use a custom mainloop that pumped the event handling of each toolkit to enable such an approach, I don't think anything stable or useful came from it.

这篇关于Gtk Widget进入Winform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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