RE: [gtkmm] Q: How to layout objects on a Notebook page



> From: D. R. Evans [mailto:N7DR arrisi com]  
> It told me how to pack the combo and the label together, but 
> not how to set 
> the width of the combo so that it wasn't far wider than the 
> strings that the 
> combo holds.

Could you put a screenshot online somewhere? Or can you reproduce it with
one of the examples or demos?

If it is packed so that it does not expand to fill all available space, then
I wouldn't expect it to be too large. You could set the size, with
set_size_request):
http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1Widget.html#a47
but to get a size that always worked, you would have to do some fancy pango
text-length calculations. But the Combo should be doing that itself.

Murray Cumming
www.murrayc.com
murrayc usa net



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