diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-11-11 19:08:52 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-11-11 19:08:52 +0000 |
| commit | 35c8c77e5eec785954d31029ed84e123842e5cf1 (patch) | |
| tree | 1afac8bc795462a82e3de05fd79cfdcd5a4f9249 /test/editor.cxx | |
| parent | 473d8af1a465ff9b30570fd9f1ed690a30b5fbb8 (diff) | |
This should fix all remaining issues with Fl_Text_*. Wrapping is no pixel aligned. Pressing up and down will be pixle bound. A few crashes removed (we still crash with faulty UTF-8svn diff | grep Index:). Fixed blinking selection when outside the widget. Added dnd sending and receiving.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/editor.cxx')
| -rw-r--r-- | test/editor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/editor.cxx b/test/editor.cxx index ace60b9fa..cd4efa86e 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -785,9 +785,9 @@ 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->wrap_mode(Fl_Text_Editor::WRAP_AT_BOUNDS, 100); w->editor->buffer(textbuf); w->editor->highlight_data(stylebuf, styletable, sizeof(styletable) / sizeof(styletable[0]), @@ -843,9 +843,9 @@ int main(int argc, char **argv) { "/* たれそ つねならむ うゐのおくやま */\n" "けふこえて あさきゆめみし ゑひも\n" "せす\n\n" - "Even colours and [sweet perfume] / Will eventually fade /\n" - "Even our world / Is not eternal /\n" - "The deep mountains of vanity / Cross them today /\n" + "Even colours and [sweet perfume] / Will eventually fade / " + "Even our world / Is not eternal / " + "The deep mountains of vanity / Cross them today / " "And superficial dreams / Shall no longer delude you.\n" "(from Iroha-uta)" ); |
