[Gtk-sharp-list] Widget alignment

Ghost ghost181991 at gmail.com
Thu May 10 16:45:18 UTC 2012


Hi gays.
I have this code.
[CODE]
using Gtk;
using System;
 
class FirstForm
{
    public static void Main(string[] argv)
    {
        Application.Init();
        Window mainWindow = new Window("Title");
        mainWindow.Title = "CyberForum";
		Gtk.HButtonBox buttonBox = new Gtk.HButtonBox();
		mainWindow.Add(buttonBox);
		for(int i = 0; i < 3; i++)
		{
			Button button = new Button();
			button.Label = string.Format("Button{0}", i + 1);
			buttonBox.Add(button);
		}
        mainWindow.ShowAll();
        mainWindow.DeleteEvent += closeWindow;
        Application.Run();
    }
    public static void closeWindow(object sender, DeleteEventArgs e)
    {
        Application.Quit();
    }
}
[/CODE]
But I don't not how to set horizontal alignment.


--
View this message in context: http://mono.1490590.n4.nabble.com/Widget-alignment-tp4623966.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list