[Gtk-sharp-list] How does one set the size of a window before displaying it?

Mike Rhodes Mike Rhodes <mike.rhodes@gmail.com>
Mon, 11 Apr 2005 17:00:38 +0100


It seems unlikely that you haven't tried this, but the following seems
to work in my code:

mainWindow.Resize (XSize, YSize);

Mike.

On Apr 9, 2005 7:06 PM, Kevin Francis <kfrancis@gmail.com> wrote:
> I am using glade to define a window, MainWindow, and I cannot seem to
> set the size before displaying, or after either. I wish to set the size
> to the last size before previous exit, something which I am storing in
> GConf.
> 
> I did achieve partial success with some Gdk method (which I now forget)
> and setting the window hidden in Glade, however when I displayed it with
> Show() or ShowAll(), it displayed no widgets...
> 
> I've found no method/property that will do this, even though advertised
> in the documentation.
> 
> My code is at these URLs:
> http://pastebin.arslinux.com/1658
> http://pastebin.arslinux.com/1659
> 
> Cheers.
> --
> Kevin Francis
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 


-- 
"One should not aim at being possible to 
understand but at being impossible to
misunderstand." - Quintilian