Replies: 2 comments
-
It's certainly possible, but I wouldn't really recommend it. The whole point of Eto.Forms is that you target Eto.Forms and let it use whichever 'back end' is most suitable for the platform you're running on. However you can force GTK on Windows. Just start a new project, add the Eto.Forms and Eto.Platform.Gtk nuget packages, and put something like this in your
This also requires the GTK runtime for Windows, which is surprisingly hard to obtain because the GTK project themselves do not directly release a binary installer any more and instead recommend you build it yourself or get it via MSYS2. I have a runtime installed on my PC now (used it to quickly test the code above, which works fine), but can't remember where I got it from. You could check this out: https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer It mostly works well except I have huge issues with keyboard input - sometimes just pressing any key at all will instantly crash my program. This doesn't happen using other backends on Windows, or GTK on Linux. Might be a bug which is fixed in newer GTK versions. The only reason I use this at all is to quickly test that my application still builds, starts and basically functions with GTK without having to manually copy binaries to my Linux VM for testing. I wouldn't want to use it as an actual target for my application on Windows. |
Beta Was this translation helpful? Give feedback.
-
Thanks I have installed the MSYS2 version. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to make a gtk application in windows? (Since gtksharp is cross platform)
Any sample code please ?
Beta Was this translation helpful? Give feedback.
All reactions