[Gtk-sharp-list] Maximum Size?

Andrew York andy at brdstudio.net
Wed Nov 23 08:39:56 EST 2011


Gtk is a flow layout by default similar to HTML and Monodevelop's gui 
editor will have defaults for the AutoSize/Fill/Expand properties. I 
make heavy use of the Alignment containers and remove the Fill/Expand 
properties to attempt to force a size. Remember in a flow layout that 
the all of a Widgets parents have an effect on the appearance of a 
Widget play around but I recommend starting by putting the control you 
want to size in a Alignment container and unchecking the Fill/Expand 
properties.

As a fall back position if you really like the way WinForm's layout 
works use a Fixed Container.

I hope this helps
Spoody Goon


On 11/23/2011 5:42 AM, TheSHEEEP wrote:
> Hey,
>
> I know that you can use the width and height request to request and minimum
> size.
> And that does seem to work.
>
> However, I need a way to restrict the size of an element to a maximum size,
> as some widgets I use in a custom widget always come out waaaay too big in
> MonoDevelop and width/height-request does not seem to help.
>
> There must be some easy way to say "NEVER become bigger than 200 width", but
> I can't find that.
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Maximum-Size-tp4099150p4099150.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list






More information about the Gtk-sharp-list mailing list