JadeTextEdit Class

The JadeTextEdit control is a type of multiple-line TextBox control that allows the display and editing of text such as program source code. The underlying editor engine of the JadeTextEdit control is based on an Open Source project called Scintilla. For details about Scintilla and the Scintilla-based text editor SciTE, see http://scintilla.sourceforge.net/SciTEDoc.html or http://scintilla.sourceforge.net/ScintillaDoc.html.

As the JadeTextEdit class is a subclass of the Control class, it inherits all of the properties and methods defined in the Control and Window classes (for example, the fontBold, fontItalic, fontName, fontSize, fontUnderline, foreColor, backColor, borderStyle, enabled, height, left, top, visible, and width properties and the getRegisteredKeys and registerKeys methods defined in the Control and Window classes).

The JadeTextEdit control class provides the JadeEditor subclass.

For a summary of the constants, properties, methods, and events defined in the JadeTextEdit class, see "JadeTextEdit Class Constants", "JadeTextEdit Properties", "JadeTextEdit Methods", and "JadeTextEdit Events", in the following subsections. See also "Using the JadeTextEdit Control", later in this section.

The JadeTextEdit class provides you with:

The JadeTextEdit control uses between four and five times the size of the text contained in the control for memory buffer and tables. The maximum size of a file that you can load into the control by using the loadTextFromFile method is the smaller of 50M bytes or a tenth of the physical memory.

Although there is no limit on the maximum number of characters in one line of text, only the first 8190 characters are displayed. This limit also applies when wrapping is enabled. The remainder of the line can be edited and the caret (insertion point) can be moved into those areas so that new line characters can be inserted.

The following image shows some of the functionality available in text editor controls.

This image illustrates the following settings that have been defined in an application.

For details about the function key and shortcut keys in the JADE editor pane, see "Using Function Keys and Shortcut Keys" under "Using the JADE Development Environment", in Chapter 2 of the JADE Development Environment User's Guide.