[Gtk-sharp-list] Dynamic Label Wrapping - How?

Peter Johanson peter at peterjohanson.com
Fri Dec 30 08:58:48 EST 2011


Sadly, the proper answer is "Use GTK+ 3.0+" that includes proper
width-for-height support, but the gtk# bindings for GTK+ 3 are not yet
released.

-pete

On Fri, Dec 30, 2011 at 05:52:58AM -0800, TheSHEEEP wrote:
> Hey folks,
> 
> I am reading text in pango markup format and inserting that text to a label
> in the GUI.
> Now texts I am reading from XML may be too long (I can't set a fixed size as
> the window is resizable - I don't want to prevent that) so the Label must
> have wrapping.
> 
> But when you turn on wrapping in MonoDevelop, the Label does wrap, but at a
> completely random size.
> 
> How do I get a Label to wrap at its current size? This can't be so hard.
> 
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Dynamic-Label-Wrapping-How-tp4245795p4245795.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 

-- 



More information about the Gtk-sharp-list mailing list