12.13. Class TEXTEDIT

12.13.1. About

Class are destined to manipulating text data - load/save from file/string, insert, delete, manipulation with marked data and clipboard, formated text and more. TEXTEDIT is a base class for function memoedit and class MEDIT.

12.13.2. Description

 TextEditNew(<Lrow>, <Lcol>, <Rrow>, <Rcol>, [<color>]) 	--> new TEXTEDIT object

12.13.2.1. Attributes

<ClassName> TEXTEDIT
<Path> String, path to editing file
<FileName> String, file name of editing file
<ColorSpec> String, color specification. If parameters <color> not specified,
  this attributes take value from SetColor()
  
  "clr1, clr2, clr3, clr4"
  clr1 - symbols base color
  clr2 - EOF-string color
  clr3 - mark symbols color
  clr4 - mark founded symbols color
  
<nTop> a TEXTEDIT viewport coordinates, specified by <Lrow> parameters
<nLeft> a TEXTEDIT viewport coordinates, specified by <Lcol> parameters
<nBottom> a TEXTEDIT viewport coordinates, specified by <Rrow> parameters
<nRight> a TEXTEDIT viewport coordinates, specified by <Rcol> parameters
<Lines> Numeric, lines in TEXTEDIT
<Line> Numeric, current line
<Pos> Numeric, cursor position into current line
<ColWin> Numeric, cursor position into TEXTEDIT viewport
<RowWin> Numeric, cursor position into TEXTEDIT viewport
<Updated> Logical, is TRUE if data changed
<MarginLeft> Numeric, the left margin value, specified as TE_MARGIN_LEFT
<MarginRight> Numeric, the right margin value, specified as TE_MARGIN_RIGHT
<TabSize> Numeric, the tabulation size value, specified as TE_TABSIZE
<Hyphen> Logical, if TRUE, then hyphen, specified as TE_HYPHEN
<MaxStrings> Numeric, the max strings value in TEXTEDIT, specified as TE_MAXSTRINGS
<TabPack> Logical, if TRUE, all symbols Tab will be packing by load and save string/file.
  By default specified as set("edit_tabpack")
<InFocus> Logical, if TRUE object in focus.
<MkBlock> Logical, if TRUE then block is marked.
<StrBlock> Logical, if TRUE then string block is marked.
<RectBlock> Logical, if TRUE then rectangle block is marked.
<KoordBlock> Array of numeric value, the block coordinates {<nTop>, <nLeft>, <nBottom>, <nRight>} or
  {<nBottom>, <nRight>, <nTop>, <nLeft>}
<LenUndo> Numeric, the length undo buffer. By default is 100.
<Charset> String, data charset.
<EofString> String, the text of <end of file>. By default is <EOF>
<lEofString> Logical, if TRUE, showing string <EofString> as last string
  of viewing data.
<HighLightColor>MAP, the map includes string numer what selected special color.
<Nstyle> Logical, is TRUE if every line into TEXTEDIT viewport has string
  number.
<EdBuffer> Array, array of string to edit. It is editor buffer.
  

12.13.2.2. Methods

ADDTOCLIPBOARD Add block to clipboard.
APPLYKEY Evalute the code block.
BACKSPACE Delete left letter.
BEGINBLOCK Start block hightlighting.
BOTTOM Goes to the last string of editor buffer.
CANCELBLOCK Unmarking block.
CENTERLINE Centering line.
CLEAR Clear editor buffer.
COPYBLOCK Make copy block.
COPYTOCLIPBOARD Copy block to clipboard.
CURWORD Take word specified by position line and column.
DELEND Delete letters to the end of string.
DELETE Delete letter.
DELETEBLOCK Make remove block.
DELETELINE Delete line.
DELHOME Delete letters to begin of string.
DELLEFT Delete left letter.
DELRIGHT Delete letter.
DOWN Goes down one line.
DRAW Draw one of box characters.
END Goes to the last line postion.
ENDBLOCK Stop block hightlighting.
FIND Finds string into editor buffer.
FINDNEXT Continue search forward.
FINDPREV Continue search backward.
FORMATLINE Formatting line.
FORMATPART Formatting part.
GOTOLINE Goes to specified line.
GOTOPOS Goes to specified column.
HANDLEKEY Simple handle key.
HIGHLIGHTADD Mark highlight line some colors.
HIGHLIGHTDEL Unmark highlight line some color.
HOME Goes to the first line postion.
IDENTITY Search identity alpha character.
INSERT Insert alpha character or substring to the editor buffer.
INSERTLINE Insert new line.
INSMACRO Make macro and insert result to editor buffer.
INSTEMPL Insert substring by template.
KILLNUMSTYLE Off the style "NUMERIC"
LEFT Goes left one column.
LOADBLOCK Make load block from file.
LOADFILE Load file.
LOADSTRING Load string to editor buffer.
MATCHSTRUCT Matching structure.
MOVEBLOCK Make move block.
MOVETOCLIPBOARD Move block to clipboard.
NEWLINE Goes new line.
NEXTWORD Take next word of word specified by position line and column.
OVERSTRIKE Replace alpha character or substring into editor buffer.
PAGEDOWN Goes down one page.
PAGEUP Goes up one page.
PASTEFROMCLIPBOARD Paste block from clipboard.
PREVWORD Take previous word of word specified by position line and column.
PRINT Print.
PRINTBLOCK Print marked block.
REFRESH Refresh TEXTEDIT viewport.
REPLACE Find with replace string into editor buffer.
RIGHT Goes right one column.
SAVEBLOCK Make save block to file.
SAVEFILE Save to file.
SAVESTRING Save editor buffer to string.
SETCHARSET Set charset to translate editor data.
SETFOCUS Set/kill focus.
SETKEY Set a code block associated with code key value.
SETNEWCOLOR Set new colors TEXTEDIT.
SETNUMSTYLE On/Off the draw style "NUMERIC"
TEXTEDITNEW TEXTEDIT object constructor.
TOP Goes to the first string of editor buffer.
UNDO Make undo operation.
UP Goes up one line.
WORDLEFT Goes left one word.
WORDRIGHT Goes right one word.
WRITEUNDO Save undo information.