Show multilineal text in TextView

How i can show some lines in a TexView if
the original content is one line very long
only?

How i can show some lines in a TexView if
the original content is one line very long
only?

Break up your string.
“foo\nbar”

I think this is a more general Ruby related question.

Something like this maybe:

textview.set_wrap_mode Gtk::TextTag::WRAP_WORD

best,
Dan

— Mil L. [email protected] wrote:

How i can show some lines in a TexView if
the original content is one line very long
only?

Posted via http://www.ruby-forum.com/.


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio
2008.

http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


ruby-gnome2-devel-en mailing list
[email protected]

Hi,

your_text_view.word_wrap = “GtkWrapMode”

will fit your needs.

Cheers, detlef

Am Mittwoch, den 06.02.2008, 16:54 +0100 schrieb Mil L.:

Marc H. wrote:

How i can show some lines in a TexView if
the original content is one line very long
only?

Break up your string.
“foo\nbar”

No, i don’t want split a String, i want
show the same string (one line) in some lines
in the textview

I think this is a more general Ruby related question.

Daniel L. wrote:

Something like this maybe:

textview.set_wrap_mode Gtk::TextTag::WRAP_WORD

This work. thanks

Exist a way for justify the text in a TextView also,
not only WrapWord ???