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.
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to