Re: reduce the size of a Container



Hi,
You need to read the chapter in the gtkmm manual on multiple item containers. <http://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en> There's a block in there explaining the basics of packing. In short:

Gtkmm doesn't as a rule allow you to specify size of a widget, so that when you can afford that big screen you've been longing for all your widgets don't suddenly look lonely in a corner of the massive window they now open in- or, if you downsize, half the widgets don't disappear off the edge of the screen.

By using Gtk::PACK_SHRINK you'll be able to get the widget to its minimum size. With a ComboBox, the default size is set by the length of the longest string you've packed into it, so if you want it shorter than that you're going to have to decide how to shorten the strings.


HTH,
Ian.

On 04/03/13 02:33, Doesnt Stop wrote:

OS: Microsoft Windows 7 64-bit
IDE: Microsoft Visual Studio
Gtkmm: Version 2.22


Is there a way to increase or reduce the size of a Container or a combo box? A combo box inside a HBox takes too much of the Horizontal space, this ruins the aesthetic of the application, it really looks uuugleey.

Sorry, I fogot to add the subject :(



_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]