diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-11-04 21:53:56 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-11-04 21:53:56 +0000 |
| commit | 38dcb5a463e0b41e220c79ee85b5fd9cd2318c33 (patch) | |
| tree | 651a89bda966f3ebbe657ce0ec553d33989ab5fa /test | |
| parent | 644fe622830a2319e84bdb40282b65c4115ebe27 (diff) | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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" |
