From 38dcb5a463e0b41e220c79ee85b5fd9cd2318c33 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 4 Nov 2010 21:53:56 +0000 Subject: Starting to rework Fl_Text_Display from scratch to make wrapping work correctly. Fixed a few issues that made wrapping crash. Using ASCII range only with fixed character sizes should still wrap as expected?! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/editor.cxx b/test/editor.cxx index f9eafa9d7..3ac8ab9ca 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -785,6 +785,7 @@ Fl_Window* new_view() { Fl_Menu_Bar* m = new Fl_Menu_Bar(0, 0, 660, 30); m->copy(menuitems, w); w->editor = new Fl_Text_Editor(0, 30, 660, 370); + w->editor->wrap_mode(1, 32); w->editor->textfont(FL_COURIER); w->editor->textsize(TS); w->editor->buffer(textbuf); @@ -812,6 +813,7 @@ int main(int argc, char **argv) { " if ( fnfc.show() ) return;\n" " save_file(fnfc.filename());\n" "}\n\n" + " 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0\n\n" "// Falsches Üben von Xylophonmusik quält jeden größeren Zwerg\n" "// (= Wrongful practicing of xylophone music tortures every larger dwarf)\n" "\n" -- cgit v1.2.3