From: megacz Date: Fri, 30 Jan 2004 07:00:15 +0000 (+0000) Subject: 2003/05/12 05:05:36 X-Git-Tag: RC3~978 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=3f41004bfc3bd18d1ac123df3e6689da9699bd50 2003/05/12 05:05:36 darcs-hash:20040130070015-2ba56-e7ecc94475ca0b3361011d73f259e4e6103e85a2.gz --- diff --git a/src/org/xwt/builtin/edit.xwt b/src/org/xwt/builtin/edit.xwt index d721bb2..707129a 100644 --- a/src/org/xwt/builtin/edit.xwt +++ b/src/org/xwt/builtin/edit.xwt @@ -1,479 +1,234 @@ - + + A single-line or multi-line edit widget. Only handles text with one font and one color, and is capable of line or word wrapping. - A text edit box. + TRAPS: - multiline : boolean -- if true, lines will be broken at newline characters - editable : boolean -- if false, the text cannot be changed, although it can be copied + - multiline : boolean -- If true, edit widget will expand vertically to handle newlines. + - editable : boolean -- If true, the user can insert, paste and delete text. + - disabled : boolean -- If false, user can select text and copy to clipboard. + - wrap : string -- Either "none", "line" or "word", specifing the form of text wrap to use. + - selection : string -- Returns the currently selected text. Putting values does nothing, see FUNCTIONS, selectText(). + - text : string -- Represents the complete text of this edit widget. Can be read and written to. + - limit : int -- A limit imposed on the total number of characters in the edit widget. 0 > limit means no limit. + - textcolor : color -- Color of the text. + - selectcolor : color -- Background Color of the currently selected text. + - selecttextcolor : color -- Color of the currently selected text. + - textChanged : boolean -- Set to true when the contents of the edit widget has changed. - - - var boxen = []; - var cr_regexp = /[\n\r]/g; - var nonwhitespace = /\S/; - + FUNCTIONS: -