gtk#

Mono gtk.RadioButton Clicked event firing twice

落爺英雄遲暮 提交于 2021-02-08 04:51:31
问题 I have a problem with the Gtk.RadioButton widget's Clicked event. Here is the example code: using System; using Gtk; public partial class MainWindow: Gtk.Window { public MainWindow (): base (Gtk.WindowType.Toplevel) { Build (); RadioButton rbt1 = new RadioButton (null, "rbt1"); RadioButton rbt2 = new RadioButton (rbt1, "rbt2"); RadioButton rbt3 = new RadioButton (rbt1, "rbt3"); VBox vbx1 = new VBox (); vbx1.PackStart (rbt1, false, false, 0); vbx1.PackStart (rbt2, false, false, 0); vbx1

Equivalent of Password Char in GTK#

你离开我真会死。 提交于 2021-02-05 11:32:38
问题 I am in the middle of porting a WinForms app to GTK#. In the WinForms version, I have a textbox with a password char of "*", but unfortunately, I can not seem to replicate this in GTK#. Any help would be greatly appreciated. Thanks, Chris 回答1: For whoever is still looking for this answer, here it is. For any given entry, if you turn the member "visibility" to "false" you will get hidden characters such as: So foo.Visibility = false; 来源: https://stackoverflow.com/questions/11696311/equivalent

Drag and drop files into program

时光毁灭记忆、已成空白 提交于 2020-06-26 14:36:11
问题 I'm using MonoDevelop tool. I want to make program like below with GTK#; 1. User drags file to program's listView, tableView or whatever 2. Dragged file's list is printed on the program's window But I'm almost new to GTK# and find the way how to drag and drop, so I searched information about it and found this link like below. http://developer.gnome.org/gtkmm-tutorial/3.0/sec-dnd-example.html.en This is the code I tried to make program link suggested (This link explains drag and drop in C++

Drag file from Program and Drop file to anywhere (Ex Desktop etc) using gtk#

我只是一个虾纸丫 提交于 2020-04-17 21:29:24
问题 I tried to Drag a file from my application to the desktop. I am need to set Drag.SourceSet to program. I do not know, how to set Drag.DestSet for Desktop The below example is useful for me while file Darg file from desktop to Drop at my application. https://stackoverflow.com/questions/14273471/drag-and-drop-files-into-program Can you please help me on this. Thanks 来源: https://stackoverflow.com/questions/61188963/drag-file-from-program-and-drop-file-to-anywhere-ex-desktop-etc-using-gtk

Drag file from Program and Drop file to anywhere (Ex Desktop etc) using gtk#

ε祈祈猫儿з 提交于 2020-04-17 21:27:50
问题 I tried to Drag a file from my application to the desktop. I am need to set Drag.SourceSet to program. I do not know, how to set Drag.DestSet for Desktop The below example is useful for me while file Darg file from desktop to Drop at my application. https://stackoverflow.com/questions/14273471/drag-and-drop-files-into-program Can you please help me on this. Thanks 来源: https://stackoverflow.com/questions/61188963/drag-file-from-program-and-drop-file-to-anywhere-ex-desktop-etc-using-gtk

Drag file from Program and Drop file to anywhere (Ex Desktop etc) using gtk#

家住魔仙堡 提交于 2020-04-17 21:26:29
问题 I tried to Drag a file from my application to the desktop. I am need to set Drag.SourceSet to program. I do not know, how to set Drag.DestSet for Desktop The below example is useful for me while file Darg file from desktop to Drop at my application. https://stackoverflow.com/questions/14273471/drag-and-drop-files-into-program Can you please help me on this. Thanks 来源: https://stackoverflow.com/questions/61188963/drag-file-from-program-and-drop-file-to-anywhere-ex-desktop-etc-using-gtk

Winforms for Mono on Mac, Linux and PC (Redux)

不羁的心 提交于 2020-01-29 09:36:47
问题 (I asked this question in another way, and got some interesting responses but I'm not too convinced.) Is Mono's GtkSharp truly cross-platform? It seems to be Gnome based... how can that work with PC and Mac? Can someone give me examples of a working Mac/PC/Linux app that is written with a single codebase in Microsoft .Net? 回答1: Plastic SCM is supported on Windows, Linux, Solaris, and Mac OS X. The link includes screenshots on Windows and Linux. 回答2: Realize this is now an old question, but

MonoDevelop editor GUI designer

一世执手 提交于 2020-01-25 01:08:25
问题 I just downloaded the MonoDevelop source code from their website. Now I want to change some of the GUI elements of the IDE. After a bit of research I found out that monodevelop's gui is made with GTK#. But I can't find a visual designer to open the source files and edit the gui. I have tried Glade (which cannot open the source files), and MonoDevelop's Stetic GUI Designer (but that one doesn't show a designer window). So is there a GUI designer to (re)design the windows and components in

Gtk theme in GTK# (Windows)

為{幸葍}努か 提交于 2020-01-21 11:28:12
问题 I'm trying to change the theme in GTK# ( OS: Windows, IDE: Xamarin ). But I get next issues: I was able to find only one theme which correctly render, it is "Orta". All was well, except for lags and freezes . Here is my code: string Resource_File = "Orta\\gtk-2.0\\gtkrc"; Application.Init (); Gtk.Rc.AddDefaultFile (Resource_File); Gtk.Rc.Parse (Resource_File); MainWindow win = new MainWindow (); win.Show (); Application.Run (); When I changing the size of the Paned or clicking on button I get

How To Print Image with GTKSharp

僤鯓⒐⒋嵵緔 提交于 2020-01-13 05:43:08
问题 I'm porting an C# .NET application to Mono .NET for executing in OSX. Part of the application involves printing an image. Fairly easy in .NET and boils down to primarily e.Graphics.DrawImage(img, new Rectangle(x, y, printSize.Width, printSize.Height)); in the PrintDocument's PrintPage event. Mono does not have a full implementation of System.Drawing.Printing so it seems that the best way to go about doing this is using GtkSharp. I've found some examples online as to how to print text using a