gtk#

Running an gtk# Application made in MonoDev with .Net

痴心易碎 提交于 2019-12-12 03:43:55
问题 Right now I am trying to learn how to use gtk# and Xamarin studio , but after I create the .EXE I cant run it with .NET. I am really new to C# and I have no idea what my program needs to work in .Net , It runs fine in mono but I would just like to see if It could work without mono . When I try to run the Exe from cmd I get this Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libgtk-win 32-2.0-0.dll': The specified procedure could not be found. (Exception from HRESU LT:

Getting programs compiled with MonoDevelop on Linux to work with the GTK# .NET runtime

坚强是说给别人听的谎言 提交于 2019-12-12 03:40:52
问题 Although there is a Windows GTK# run-time installer for .NET I have noticed that GTK# applications compiled using MonoDevelop under Linux (built via SlackBuilds so it is pretty fresh) crash on Windows7 if run via double-clicking, whereas if I build the binary using the same project solution using Xamarin Studio for Windows, running via double-clicking is fine. I'm guessing that the MonoDevelop compiled binary does not include stubs needed to use a non-Mono GTK# install. So: Is it possible to

GTK# HTML viewer for UI

≡放荡痞女 提交于 2019-12-12 03:29:56
问题 I want to create a cross-platform GTK# application with HTML/CSS/JS user interface. I already found Gtk.HTML rendering widget, but it does not support CSS and JS(I think that because thus it is written on this page). So what are the options I have to accomplish this task? 来源: https://stackoverflow.com/questions/35518973/gtk-html-viewer-for-ui

How to Programmatically Sort TreeView

元气小坏坏 提交于 2019-12-12 02:53:30
问题 I want to make a sorted list in a TreeView. I know that user can sort the contents by clicking the column header. But how to do it programmatically (such as in every change of its content)? 回答1: Wrap the model with a GtkTreeModelSort. 回答2: example: void gtktreeview_sort_force(GtkTreeSortable *sortable) { gint sort_column_id; GtkSortType order; gtk_tree_sortable_get_sort_column_id(sortable, &sort_column_id, &order); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(sortable), GTK_TREE

how to show text with time difference? (monodevelop c#)

守給你的承諾、 提交于 2019-12-11 23:10:49
问题 I made a GTK# 2.0 Project from MonoDevelop, and modified MainWindow.cs like this; using System; using System.Threading; using Gtk; public partial class MainWindow : Gtk.Window { public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); } protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Application.Quit(); a.RetVal = true; } protected void OnButtonClicked(object sender, EventArgs e) { textview.Buffer.Text = "Hello, world!"; Thread.Sleep(2500); textview.Buffer.Text +=

Showing Font Selection Dialog in GTK#

核能气质少年 提交于 2019-12-11 17:58:18
问题 In MY gtk# Application im trying to show the font selection dialog.Im trying to use the following code,but the FontSelectionDialog constructor need some arguments also does the control execution wait for a font to be selected to set the string font Can someone guide me? Gtk.FontSelectionDialog fs = new FontSelectionDialog() fs.Show (); font=fs.FontName; 回答1: Updated according to additional question This should help: FontSelectionDialog dialog = null; try { dialog = new FontSelectionDialog(

GTK# Widget in front of another widget

。_饼干妹妹 提交于 2019-12-11 14:46:33
问题 How to bring a widget to the front of another widget? I want to put the timeLeft Label in front of the box DrawingArea My Code : box.SetSizeRequest((int)Math.Floor(size*2.5), size); box.ExposeEvent += boxExpose; theMainWindow.winFix.Put(box, x, y); box.Show(); Pango.FontDescription fontdesc = Pango.FontDescription.FromString("Lucida Console " + (size - 6)); timeLeft.ModifyFont(fontdesc); timeLeft.SetSizeRequest((int)Math.Floor(size*2.5)-6, size-6); theMainWindow.winFix.Put(timeLeft, x+3, y+3)

GTK# GUI designer for Visual Studio 2015

假装没事ソ 提交于 2019-12-11 09:58:20
问题 I'm trying to make an application in C# that can download, install and manage various games that I and a few friends'll be making. I know how I'm gonna do it, but I want users to be able to use this app on both Windows and Linux as most games will run on both. That's not the big issue, I know how I'm gonna get that working. Ohhhh, the power of Mono and GTK#. The issue is, however, that for GUI-designing I can't figure out how to design GTK windows within Visual Studio just like you can with

Error CS0246 when trying to use Gtk#

随声附和 提交于 2019-12-11 09:48:52
问题 I am trying to build a project using Gtk#. I have used Gtk# before, and I have always been using SharpDevelop for doing so. Just that now ... it doesn't seem to work any more: I have installed the latest release, Gtk# 2.12.26 for .NET, with the installer package from the Mono website, as I have formerly done with earlier versions. I have created a C# command line application project in SharpDevelop, using C# 3.0 and targetting .NET 3.5. I have added GAC references from my project to atk-sharp

Gtk# Multiple File Filter

女生的网名这么多〃 提交于 2019-12-11 08:46:47
问题 I want to display only image files in GTK# File Chooser fc.SelectMultiple = true; FileFilter filter = new FileFilter(); filter.Name = "Image files"; filter.AddPattern ("*.jpg;*.jpeg;*.png;*.tif;*.bmp;*.gif;*.tiff"); fc.Filter = filter; This does not work.The file chooser does not show any Files. Can someone suggest me a proper way to do this. 回答1: As shown in the sample from the docs, the AddPattern method is meant for adding a single pattern at a time. In contrast to the WinForms