From d453884e0ffdc49bf42f373581210d95d56a0985 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 23 Jul 2002 16:28:19 +0000 Subject: Add wrap() method and bit for Fl_Input_, and make word wrap dependent on this (wrap margin is the width of the widget less box borders) Don't select the text in value() for a readonly() (output) field. Display a caret instead of a vertical bar for the cursor in output fields. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/input.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/input.cxx b/test/input.cxx index 4892c4d92..71ffd1421 100644 --- a/test/input.cxx +++ b/test/input.cxx @@ -1,5 +1,5 @@ // -// "$Id: input.cxx,v 1.5.2.4.2.3 2002/05/13 05:05:11 spitzak Exp $" +// "$Id: input.cxx,v 1.5.2.4.2.4 2002/07/23 16:28:19 easysw Exp $" // // Input field test program for the Fast Light Tool Kit (FLTK). // @@ -89,6 +89,7 @@ int main(int argc, char **argv) { input[3]->tooltip("Input field for password"); input[4] = new Fl_Multiline_Input(70,y,300,100,"Multiline:"); y += 105; input[4]->tooltip("Input field for short text with newlines"); + input[4]->wrap(1); for (int i = 0; i < 4; i++) { input[i]->when(0); input[i]->callback(cb); @@ -131,5 +132,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: input.cxx,v 1.5.2.4.2.3 2002/05/13 05:05:11 spitzak Exp $". +// End of "$Id: input.cxx,v 1.5.2.4.2.4 2002/07/23 16:28:19 easysw Exp $". // -- cgit v1.2.3