[Gtk-sharp-list] How to centre the popup window on screen
Stephen Liu
satimis at yahoo.com
Fri Apr 23 22:18:04 EDT 2010
Hi folks,
I have following code:-
using System;
using Gtk;
public class GtkHelloWorld {
public static void Main() {
Application.Init();
//Create the Window
Window myWin = new Window("GREETING");
myWin.Resize(200,200);
//Create a label and put some text in it.
Label myLabel = new Label("<b><i>Hello World!!!!</i></b>");
myLabel.UseMarkup = true;
//Add the label to the form
myWin.Add(myLabel);
//Show Everything
myWin.ShowAll();
Application.Run();
}
}
- end -
The .exe file compiled with "mcs" works on mono nicely in Linux environment with a window popup on screen.
Now I want to the make the window popup on the centre of the screen. Please advise how to make it. TIA
B.R.
Stephen L
More information about the Gtk-sharp-list
mailing list