On Wed, Dec 22, 2010 at 8:12 PM, viny <[email protected]> wrote: > I have a gtk label that displays a long text, its height is fixed and the > text is wrapped. I want to calculate the correct width that I should put to > my label so it displays the entire text. Is there any way to do that ? > > that is what my window looks like when it's launched > http://mono.1490590.n4.nabble.com/file/n3161512/11566580086314_capture.png
For variable-length wrapped text, I would suggest you use a TextView in a ScrolledWindow. You can set the base color to match the window background if you want. -- Michael Hutchinson http://mjhutchinson.com _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
