[Gtk-sharp-list] gtk label : text wrapped and not fully displayed
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
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.
More information about the Gtk-sharp-list