[Gtk-sharp-list] gtk label : text wrapped and not fully displayed
Michael Hutchinson
m.j.hutchinson at gmail.com
Thu Dec 23 18:29:42 EST 2010
On Wed, Dec 22, 2010 at 8:12 PM, viny <viny13 at live.fr> 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
More information about the Gtk-sharp-list
mailing list