gtk#

GTK# StatusIcon Icon not display

谁说胖子不能爱 提交于 2020-01-06 08:36:28
问题 I tried to adding icon in Windows Tray using below code in GTK# application.( i am using XAMARIN STUDIO to develop GTK# application) enter code here Statusbar status = new Statusbar (); trayIcon = new StatusIcon(); trayIcon.Pixbuf = new Gdk.Pixbuf ("TrayIcon.ico"); trayIcon.IconName="Tray Icon Name"; trayIcon.Visible = true; trayIcon.PopupMenu += trayIcon_PopupMenu; trayIcon.Tooltip = "Tray Icon Tooltip"; Icon added and contextmenu also added but icon "TrayIcon.ico" not display on windows.

pkg-config path for mono on mac

会有一股神秘感。 提交于 2020-01-04 07:04:30
问题 I installed mono in Mac OS X. I was following these instructions on the mono website. The first console application worked because it didn't use any packages. However, when I ran gmcs hello.cs -pkg:gtk-sharp-2.0 , it told me I didn't have pkg-config installed. So I installed pkg-config. Now I get this error because pkg-config doesn't know the mono package path: Perhaps you should add the directory containing `gtk-sharp-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk-sharp

pkg-config path for mono on mac

陌路散爱 提交于 2020-01-04 07:04:10
问题 I installed mono in Mac OS X. I was following these instructions on the mono website. The first console application worked because it didn't use any packages. However, when I ran gmcs hello.cs -pkg:gtk-sharp-2.0 , it told me I didn't have pkg-config installed. So I installed pkg-config. Now I get this error because pkg-config doesn't know the mono package path: Perhaps you should add the directory containing `gtk-sharp-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk-sharp

CSS styling in GTKSharp

本小妞迷上赌 提交于 2020-01-04 05:27:10
问题 I'm converting a C/GTK+ GUI application to C# using GTKSharp in VS2017. I've installed this package https://www.nuget.org/packages/GtkSharp/3.1.3 via NuGet. Here's how I load up the CSS (the application uses a Glade file to define the interface): static void Main(string[] args) { new Program(args); } public Program(string[] args) { Application.Init(); builder = new Builder(); Gtk.CssProvider provider = new CssProvider(); builder.AddFromFile("interface.glade"); provider.LoadFromPath("style.css

How to remove frame (or border?) form a GtkScrolledWindow

不想你离开。 提交于 2020-01-04 03:49:12
问题 How I can remove the frame (or the border if it is...) of a GtkScrolledWindow (gtk#)? Use of window.ShadowType = ShadowType.None; don't work, window.BorderWidth=0; don't work... Thanks for help! 回答1: Set the FormBorderStyle property of your Form to None. 来源: https://stackoverflow.com/questions/4927416/how-to-remove-frame-or-border-form-a-gtkscrolledwindow

GTK# .NET Application without requiring separate GTK# Install

房东的猫 提交于 2020-01-02 04:30:11
问题 I was playing around with developing C# apps using MonoDevelop on windows and found that I like using GTK# instead of winforms. However, as far as I could tell so far you cannot just embed the GTK# runtime into the application. The problem is that I would rather not have to require the end users of an app I'm working on to having to install GTK# separately... this is fine for geeks like me, but the app would be for non-geek users and I want the install to pretty much be a one click operation.

WinForms vs GtkSharp with Mono

江枫思渺然 提交于 2019-12-30 07:52:27
问题 When developing with Mono for an app to be run on Windows and Mac OSX (and maybe Linux) which would you suggest, WinForms or GtkSharp for the GUI and why ? Specific examples and success/horror stories would be much appreciated. 回答1: Cross platform development is a nice idea, but to be completely honest I have never seen an application that looks really good outside of its native environment. That is why I think, that if you really want to offer good user experience you should use native

Running GTK# Application on Windows

ぃ、小莉子 提交于 2019-12-25 06:43:17
问题 I've just programmed and built a GTK# application using MonoDevelop on Linux Mint 16. I wanted to see if it's cross-platform enabled, so I tried to run it on a Windows 8 machine (which has .NET Framework 4.0), and installed Mono runtime (which includes GTK# for Windows) so that it could run over there. Here's the issue: when I run the executable from Windows Explorer, I assume .NET Framework takes over, because nothing happens. The executable will run if, from within Windows, I enter "Mono

Mono C# Set CultureInfo not working on Windows

微笑、不失礼 提交于 2019-12-24 14:15:01
问题 I'm currently facing a bug, that the language of my application can not be set to something different than system default. I use the following Code to set the CultureInfo: Catalog.Init("AudioCuesheetEditor", Path.GetFullPath(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + MainClass.CONST_STR_LOCALE_PATH)); [...] //Set the locale log.debug("CultureInfo.CurrentCulture = " + CultureInfo.CurrentCulture); if (Program.getInstance().getObjOption().getStrSelectedLanguage() != null)

Why doesn't my GTK# compiled binary (created with MonoDevelop) work on Windows?

跟風遠走 提交于 2019-12-24 02:44:10
问题 I created a C# project using MonoDevelop (Xamarin) on my Mac. From what I've read, it seems that Windows should be able to run the .exe if it has .Net installed. However, no such luck. Any pointers on getting this .exe to run in Windows? Thanks 回答1: From monodevelop, with the project open, click Project, then settings. Under the build flag, click general. Change the target framework to .NET 4.0 Client Profile. Make sure mono is installed on windows. http://www.go-mono.com/mono-downloads