<string> $textLine(<line:integer>) |
Returns the string at line <line>. Note that it can be an empty string. |
<integer> $numLines() |
Returns number of lines in the widget. |
<line,col:integer> $cursorPosition() |
Returns current cursor position in "<line:uinteger>, <col:uinteger>" format. |
$setReadOnly(<bReadOnly:boolean>) |
Sets the editor to be read-only if bReadOnly is 1 or removes the read-only status is ReadOnly is 0 |
<boolean> $atBeginning() |
Returns 1(TRUE) if the cursor is placed at the beginning of the text; otherwise returns 0(FALSE). |
<boolean> $atEnd() |
Returns 1(TRUE) if the cursor is placed at the end of the text; otherwise returns 0(FALSE). |
$setWordWrap(<wrap_mode:string>) |
Sets the word wrap mode to mode. Valid Values are: - NoWrap - Do not wrap the text. - WidgetWidth - Wrap the text at the current width of the widget. - FixedPixelWidth - Wrap the text at a fixed number of pixels from the widget's left side. - FixedColumnWidth - Wrap the text at a fixed number of character columns from the widget's left side. |
<string> $wordWrap() |
Returns the word wrap mode. NoWrap, WidgetWidth, FixedPixelWidth, FixedColumnWidth. |
<string> $text() |
Returns the multiline edit's text. |
<integer> $length() |
Returns the number of characters in the text This function ignores newlines. |
$setMaxLines(<mac_lines:integer>) |
Sets the max number of the lines to <a> |
<integer> $maxLines() |
Returns the max number of the lines in the multiline edit. |
$insert(<text:string>) |
Inserts text at the current cursor position. |
$append(<text:string>) |
Appends a new paragraph with text to the end of the multiline edit. |
$copy() |
Copies any selected text from selection to the clipboard. |
$cut() |
Copies the selected text from selection to the clipboard and deletes it from the multiline edit. |
$paste() |
Pastes the text from the clipboard into the multiline edit at the current cursor position. |
$setFamily(<font_family:string>) |
Sets the font family of the current format to fontFamily. |
$setItalic(<bItalic:boolean>) |
If the bool value is 1 sets the current format to italic; otherwise, if it's 0 sets the current format to no-italic. |
$setBold(<bBold:boolean>) |
If the bool value is 1 sets the current format to bold; otherwise, if it's 0 sets the current format to no-bold. |
$setUnderline(<bUnderline:boolean>) |
If the bool value is 1 sets the current format to underline; otherwise, if it's 0 sets the current format to no-underline. |
<boolean> $italic() |
Returns 1(TRUE) if the current format is italic; otherwise returns 0(FALSE). |
<boolean> $bold() |
Returns 1(TRUE) if the current format is bold; otherwise returns 0(FALSE). |
<boolean> $underline() |
Returns 1(TRUE) if the current format is underline; otherwise returns 0(FALSE). |
$zoomIn(<zoom_range:integer>) |
Zooms in on the text by making the base font size range points larger. |
$zoomOut(<zoom_range:integer>) |
Zooms out on the text by making the base font size range points smaller. |
$undo() |
Undoes the last operation. |
$redo() |
Redoes the last operation. |
$clear() |
Deletes all the text in the multiline edit. |
$setUndoRedoEnabled(<bUndoRedo:boolean>) |
Sets whether undo/redo is enabled to the bool value. |
<boolean> $isUndoRedoEnabled() |
Returns 1 (TRUE) if undo/redo is enabled; otherwise returns 0 (FALSE). |
<integer> $undoDepth() |
Returns the depth of the undo history. |
$setText(<txt:string>) |
Sets the text edit's text to txt. |
$setColor(<rgb_value>) |
Sets the foreground color of this widget to <rgb_value>:valid values are: -hex string: must be a string with 6 hexadecimal digits (like the ones used to specify colors in html pages). The first two digits specify the RED component, the third and fourth digit specify the GREEN component and the last two specify the BLUE component. -array(red:integer,green:integer,blue:integer) -red:integer,green:integer,blue:integer. |
$setPointSize(<point_size:integer)) |
Sets the point size of the font. |
$setLinkUnderline(<bLinkUnderline:boolean>) |
Sets to 1 if you want that hypertext links will be underlined; otherwise sets to 0. |
$setTextFormat(<textformat:string>) |
Sets the text format. Correct values are RichText, PlainText. |
<string> $textFormat() |
Returns the text format: rich text or plain text. |
$loadFile(<path:string>) |
Load the file specified in the <path>, also html files. |
<boolean> $isUndoAvailable () |
Returns 1(TRUE) if undo is available; otherwise returns 0(FALSE). |
<boolean> $isRedoAvailable () |
Returns 1(TRUE) if redo is available; otherwise returns 0(FALSE). |
<integer> $lines() |
Returns the number of lines in the multilineedit. |
<integer> $lineOfChar(<paragraph:integer>,<index:integer>) |
Returns the line number of the line in paragraph par in which the character at position index appears. If there is no such paragraph or no such character at the index position -1 is returned. |
$setModified(<bModified:boolean>) |
Sets whether the document has been modified by the user. Valid Values are 1(TRUE) or 0(FALSE) |
$setAlignment(<alignment:string>) |
Sets the alignment of the current paragraph to <alignment>. Valid values are: - Auto - Aligns according to the language.[b - Left - Aligns with the left edge. - Right - Aligns with the right edge. - Center - Centers in both dimensions. - Justify - Justify the text. |