Index | Parent | TextEditor class |
TextEditor class is used to create fully featured text editor objects.
TextEditor class is a subclass of TextEditor.mcc, so you must have TextEditor.mcc in MUI:Libs/MUI to use it. TextEditor.mcc is copyright of Allan Odgaard.
Attributes | |||
---|---|---|---|
Name | Type | Class | Note |
AreaMarked | B | GN | |
AutoClip | B | ISGN | |
Columns | N | ISG | |
Contents | S | ISG | This is the content of the object. Note that when you get it, you always get a <65536 chars string, despite the real length of it |
CursorX | N | ISGN | |
CursorY | N | ISGN | |
Error | N | GN | You may find here the last error, one of:
|
Export | S | IS | One of:
|
ExportWrap | N | ISGN | |
FixedFont | B | IGN | |
Flow | M | SGN | A number or one of:
|
HasChanged | B | ISGN | |
Import | S | IS | One of:
|
ImportWrap | N | ISGN | |
InsertMode | B | ISGN | |
InVirtualGroup | B | I | Set it to 1 if your TextEditor is (supposed to be) in a Virtgroup |
Pen | N | SGN | |
Quiet | B | ISGN | |
ReadOnly | B | ISGN | |
RedoAvailable | B | GN | |
Rows | N | I | |
Separator | S | SG | |
Slider | S | I | The name of a slider, prop, Scrollbar object to be linked to the TextEditor. Example:mgroup.0="teg" teg.class="group" teg.horiz=1 teg.spacing=0 teg.0="te" te.class="texteditor" te.slider="tescr" tescr.class="Scrollbar" teg.1="tescr" |
StyleBold | B | SGN | |
StyleItalic | B | SGN | |
StyleUnderline | B | SGN | |
TypeAndSpell | N | SGN | |
UndoAvailable | B | GN | |
WrapBorder | N | ISGN |
Methods | ||
---|---|---|
Name | Parameters | Note |
ARexxCmd | <cmd>,[result/S] | Execute the ARexx command cmd if result is supplied, it is used to store the result of the command, if any. |
BlockInfo | <stem/V> | The fields of stem set are:
|
ClearText | ||
FreeResources | When you get the contents of the object, a large amount of mem (depending of contents size) is allocated (and freed only at object disposing). To free this mem, you may use this method. | |
Insert | <file>,[DontMove/B] | DontMove is a boolen: if 1, the object doesn't move to the end of the inserted text. |
InsertText | <text>,[where] | where is one of:
|
MarkText | <StartX>,<StartY>,<StopX>,<StopY> | |
Open | <file> | Note that RC will contain the IoErr(). |
Replace | <string> | |
Save | <file> | |
Search | <string>,[flags] | flags is one or more of:
|