From 35c8c77e5eec785954d31029ed84e123842e5cf1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 11 Nov 2010 19:08:52 +0000 Subject: 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 --- test/editor.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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)" ); -- cgit v1.2.3