GtkD button size

FG home at fgda.pl
Tue Feb 5 12:28:12 PST 2013


On 2013-02-05 20:48, SaltySugar wrote:
> Can I use hbox.add(btn); instead of hbox.packStart (btn,false,false,5);
> What difference between them?

Using add(btn) you would probably end up with a stretched button again. :)
     hbox.packStart(child, expand, fill, padding)
It was explicitly said that expand = false, to prevent button resizing.

Read more here:
http://www.mono-project.com/GtkSharp:_Packing_with_Boxes
It's Gtk# but may be of some help to you.


More information about the Digitalmars-d-learn mailing list