[Gtk-sharp-list] Manual layout in GtkSharp

george moudry gmoudry_2004@hotmail.com
Fri, 29 Oct 2004 23:40:23 +0000


I am interested in having a visual designer within VisualStudio, which could 
allow similar design tasks as Glade -
I would like a novice user to be able to paste a button into a Gtk form and 
double-click to write the 'Click' function (but without adding hboxes and 
vboxes).

When searching through this list, I came across Miguel's post
http://www.mail-archive.com/mono-docs-list@ximian.com/msg00225.html
where he says:
>The first thing to keep in mind is that the use of absolute positioning on 
>a form is not recommended when using Gtk.
>
>The problem arises when a user changes his font, or is using the 
>application in another country.  For example the common "Ok" button would 
>become "Aceptar" in spanish.  So any absolute positioning is considered a 
>bad idea.

Agreeing that absolute layout has its problems, I still want to experiment 
with it.
Miguel seems to say that 'it is not recommended' - implying that it is 
possible - can anyone show me how?

I tried C# code such as:
  Gtk.Button btn = new Button();
  btn.Label = "Button1";
  btn.SetSizeRequest(100,100);
But the button occupies the entire GtkForm ...
Any ideas?

Regards,
George Moudry, Los Angeles

_________________________________________________________________
Check out Election 2004 for up-to-date election news, plus voter tools and 
more! http://special.msn.com/msn/election2004.armx