1998-10-20 01:39:29 +04:00
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// "$Id$"
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
|
|
|
// Multiline input header file for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
2011-05-23 22:32:47 +04:00
|
|
|
// Copyright 1998-2011 by Bill Spitzak and others.
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// This library is free software. Distribution and use rights are outlined in
|
|
|
|
// the file "COPYING" which should have been included with this file. If this
|
|
|
|
// file is missing or damaged, see the license at:
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// http://www.fltk.org/COPYING.php
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2005-04-16 04:13:17 +04:00
|
|
|
// Please report all bugs and problems on the following page:
|
|
|
|
//
|
|
|
|
// http://www.fltk.org/str.php
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
|
|
|
|
2008-10-15 17:46:06 +04:00
|
|
|
/* \file
|
2011-07-19 08:49:30 +04:00
|
|
|
Fl_Multiline_Input widget . */
|
2008-09-15 15:10:51 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
#ifndef Fl_Multiline_Input_H
|
|
|
|
#define Fl_Multiline_Input_H
|
|
|
|
|
|
|
|
#include "Fl_Input.H"
|
|
|
|
|
2008-09-15 15:10:51 +04:00
|
|
|
/**
|
2014-10-09 15:45:02 +04:00
|
|
|
This input field displays '\\n' characters as new lines rather than ^J,
|
2008-09-15 15:10:51 +04:00
|
|
|
and accepts the Return, Tab, and up and down arrow keys. This is for
|
|
|
|
editing multiline text.
|
2010-11-01 01:39:40 +03:00
|
|
|
|
2009-09-20 02:09:00 +04:00
|
|
|
This is far from the nirvana of text editors, and is probably only
|
|
|
|
good for small bits of text, 10 lines at most. Note that this widget
|
|
|
|
does not support scrollbars or per-character color control.
|
2010-11-01 01:39:40 +03:00
|
|
|
|
2009-09-20 02:09:00 +04:00
|
|
|
If you are presenting large amounts of text and need scrollbars
|
|
|
|
or full color control of characters, you probably want Fl_Text_Editor
|
|
|
|
instead.
|
2010-12-20 10:48:59 +03:00
|
|
|
|
|
|
|
In FLTK 1.3.x, the default behavior of the 'Tab' key was changed
|
|
|
|
to support consistent focus navigation. To get the older FLTK 1.1.x
|
|
|
|
behavior, set Fl_Input_::tab_nav() to 0. Newer programs should consider using
|
|
|
|
Fl_Text_Editor.
|
2008-09-15 15:10:51 +04:00
|
|
|
*/
|
2010-12-13 02:21:03 +03:00
|
|
|
class FL_EXPORT Fl_Multiline_Input : public Fl_Input {
|
1998-10-06 22:21:25 +04:00
|
|
|
public:
|
2008-09-15 15:10:51 +04:00
|
|
|
/**
|
|
|
|
Creates a new Fl_Multiline_Input widget using the given
|
|
|
|
position, size, and label string. The default boxtype is FL_DOWN_BOX.
|
2011-05-23 22:32:47 +04:00
|
|
|
|
|
|
|
Inherited destructor destroys the widget and any value associated with it.
|
2008-09-15 15:10:51 +04:00
|
|
|
*/
|
2011-05-23 22:32:47 +04:00
|
|
|
Fl_Multiline_Input(int X,int Y,int W,int H,const char *l = 0);
|
1998-10-06 22:21:25 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-10-20 01:39:29 +04:00
|
|
|
|
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// End of "$Id$".
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|