diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-23 16:28:19 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-23 16:28:19 +0000 |
| commit | d453884e0ffdc49bf42f373581210d95d56a0985 (patch) | |
| tree | 542a5a5c58704b8c8a1b1eefeda511b13aaff750 /test/input.cxx | |
| parent | 745cd4204a3d9cc379e99db6f6cf9d75d4337c3b (diff) | |
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
Diffstat (limited to 'test/input.cxx')
| -rw-r--r-- | test/input.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 $". // |
