TextEdit

TextEdit is an advanced WYSIWYG viewer and editor supporting rich text formatting with HTML-style tags. It is optimized to handle large documents and to respond quickly to user input. TextEdit supports plain text and rich text and can be used as viewer (Read-Only).

Available functions Description
"append" Adds a text to a textEdit document.
"alignment" Changes the alignment at a cursor position or the alignment of the selected text.
"autoFormatting"

This attribute sets the format of a TextEdit to either:

  • AutoNone

  • AutoBulletList

  • AutoAll

"bold" Sets the font to bold.
"contentsHeight", "contentsWidth" The attribute "contentsHeight" returns the height of a TextEdit text area or of a tree widget. The attribute "contentsWidth", again, returns the width of a TextEdit text area or tree widget.
"contentX, "contentY" The attributes contentsX and contentsY return the coordinates of a TextEdit text or of a tree widget. Attribute contentsX returns the X coordinate of the contents (text) on the left side of the view. Attribute contentsY returns the Y coordinate of the contents (text) at the top of the view.
"currentFont" Changes the font at a cursor position.
"cursorWidth" The attribute "cursorWidth" sets the cursor width of a textEdit.
"documentTitle" The attribute "documentTitle" returns the title of a textEdit document.
"family" The attribute "family" returns the font family of the current font.
"font" Sets the font for a textEdit object.
"frameShadow" The attribute "frameShadow" specifies the frame effect (3D effect) for an object (textEdit, progress bar, tree widget, thumb wheel, LCD number or zoom navigator).
"frameShape" The attribute "frameShape" sets the style of a textEdit frame, thumb wheel, tree widget, zoom navigator, LCD number or progress bar.
"frameWidth" The attribute "frameWidth" returns the width of a frame (textEdit, tree widget, zoom navigator, LCD number or thumb wheel).
"getCursorPosition" Returns the cursor position in a textEdit document.
"hasSelectedText" The attribute "hasSelectedText" returns TRUE if a text of a textEdit has been selected.
"height" The attribute "height" returns the height of an object (textEdit, progress bar, tree widget, zoom navigator, LCD number or thumb wheel).
"hScrollBarMode" The attribute "hScrollBarMode" sets the horizontal scroll bar mode of a textEdit, tree widget or table.
"insert" Inserts a text at the current position.
"insertAt" Adds a text to a textEdit document at the given position.
"insertHtml" Inserts an HTML text at the current cursor position.
"insertHtmlAt" Inserts an HTML text at the given position.
"insertParagraph" Adds a paragraph to a textEdit document at the given position.
"isActiveWindow" The attribute "isActiveWindow" returns TRUE if this widget is the active window, otherwise FALSE.
"italic" The attribute "italic" sets the font (of a textEdit) to italic type (beginning from the cursor position). The attribute also returns TRUE if the current font is italic type.
"length" The attribute "length" returns the length of a textEdit text.
"lineWidth" The attribute "lineWidth" sets the width of an object line (textEdit, progress bar, tree widget, zoom navigator, LCD number or thumb wheel (frame)).
"linkUnderline" - obsolete The attribute "linkUnderline" underlines a link.
"margin" - obsolete The attribute "margin" specifies the distance between the innermost pixel of a frame and the outermost pixel of the rectangle inside the frame.
"maximumHeight", "maximumWidth" The attribute "maximumHeight" returns the maximum height of a textEdit (excluding any window frame), tree widget or slider and the attribute "maximumWidth" returns the maximum width of a textEdit, tree widget or slider.
"minimumHeight", "minimumWidth" The attribute "minimumHeight" returns the minimum height of a textEdit (excluding any window frame), tree widget or slider and the attribute "minimumWidth" returns the minimum width of a textEdit, tree widget or slider.
"modified" The attribute "modified" returns TRUE if a textEdit has been modified.
"overwriteMode" Sets the overwrite mode for a textEdit.
"pointSize" The attribute "pointSize" sets the font size for a textEdit text.
"readOnly" The attribute "readOnly" sets a textEdit document to read only.
"removeParagraph" Removes a paragraph from a textEdit document at the given position.
"scrollBy" Scrolls the content by dx to the left and dy upwards.
"selectedText" The attribute "selectedText" returns the selected text of a textEdit.
"setCursorPosition" Sets the cursor position in a textEdit document.
"setSelection" Highlights a part of a textEdit text.
"tabChangesFocus" If the attribute "tabChangesFocus" is set to TRUE, it is not possible to input tabulators.
"tabStopWidth" The attribute "tabStopWidth" sets the tab stop width of a textEdit.
"text" Button labelling or the text of a textEdit.
"textFormat" Sets the text format for a textEdit.
"underline" Underlines the current font (text) or returns TRUE if the current font (text) has been underlined.
"undoRedoEnabled" This property holds whether undo or redo has been enabled.
"updatesEnabled" This attribute specifies whether updates of a widget (textEdit, slider, progress bar, zoom navigator, LCD number or thumb wheel) have been enabled.
"visibleHeight" This property holds the vertical amount of the visible content.
"visibleWidth" This property holds the horizontal amount of the visible content.
"vScrollBarMode" The attribute "vScrollBarMode" sets the vertical scroll bar mode of a textEdit, tree widget or table.
"width" The attribute "width" returns the width of an object (textEdit, zoom navigator or slider).
"wordWrap" The attribute "wordWrap" specifies the different word wrap modes.
"wrapColumnOrWidth" The attribute "wrapColumnOrWidth" sets the number of characters for the wrap mode "FixedColumnWidth" and the number of pixels for the wrap mode "FixedPixelWidth" (see chapter "wordWrap").
"wrapPolicy" The attribute "wrapPolicy" specifies where text (of a textEdit) can be wrapped in word wrap mode.
"x","y" The attributes x and y return the coordinates of an object (textEdit, progress bar, slider, zoom navigator, LCD number or thumb wheel. Attribute x returns the X coordinate of an object and attribute y returns the Y coordinate of an object.