Also, you can compose your strings using PangoLayout and use its ellipsize mode 
to restrict the length of the strings between some limits.

https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-set-ellipsize


----- Mensaje original -----
> De: Ian Martin <[email protected]>
> Para: [email protected]
> CC: 
> Enviado: Domingo 3 de marzo de 2013 20:50
> Asunto: 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
>>  [email protected]
>>  https://mail.gnome.org/mailman/listinfo/gtkmm-list
> 
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
> 
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to