[Gtk-sharp-list] Placing controls and sizing them

John Meyer john.l.meyer at gmail.com
Mon Dec 19 10:37:49 EST 2005


All right, but I can't use PackStart from the window.

Here's my code

public MyWindow () : base ("MyWindow")
    {
        this.SetDefaultSize (400, 300);
        Button btn = new Button("Click me");
        btn.Clicked += new EventHandler(btn_click);
        btn.SetSizeRequest(50,50);
        this.Add(btn);

Mariano Benedettini wrote:

> See the fill and expand properties:
>
> http://www.go-mono.com/docs/monodoc.ashx?tlink=5@ecma%3a707%23Box%2fM%2fPackStart%2f3 
>
>
> If you are using Glade, just uncheck the options at design time.
>
> Mariano.




More information about the Gtk-sharp-list mailing list