| ||The control will generate the message wxEVENT_TYPE_TEXT_ENTER_COMMAND
(otherwise pressing ||The control will receive EVT_CHAR messages for TAB pressed - normally,
TAB is used for passing to the next control in a dialog instead. For the control created with this
style, you can still use Ctrl-Enter to pass to the next control from the keyboard.
||The text control allows multiple lines.
||The text will be echoed as asterisks.
||The text will not be user-editable.
||Use rich text control under Win32, this allows to have more than 64Kb of text in
the control even under Win9x. This style is ignored under other platforms.
||Use rich text control version 2.0 or 3.0 under Win32, this style is ignored
under other platforms. You must use this style if you want to set the background color (see wxTextAttr).
||Highlight the URLs and generate the wxTextUrlEvents when mouse events
occur over them. This style is supported under Win32 only and requires wxTE_RICH.
||By default, the Windows text control doesn't show the selection when
it doesn't have focus - use this style to force it to always show it. It doesn't do anything
under other platforms.
||A horizontal scrollbar will be created. No effect under GTK+.
||The text control will be left-justified (default).
||The text control will be centre-justified.
||The text control will be right-justified.
||Same as wxHSCROLL style.
| ||Generated when the text changes. Notice that this event will always be sent when
the text controls contents changes - whether this is due to user input or comes from the program itself (for example, if
set_text_value() is called)
||Generated when enter is pressed in a single-line text control.
||A mouse event occured over an URL in the text control (Win32 only)
||User tried to enter more text into the control than the limit set by SetMaxLength.
This appends text to the end of the wxTextCtrl buffer.
Returns true if the selection can be copied to the clipboard.
Returns true if the selection can be cut to the clipboard.
Returns true if the contents of the clipboard can be pasted into the text control. On some platforms (Motif, GTK) this is an approximation and returns true if the control is editable, false otherwise.
Returns true if there is a redo facility available and the last operation can be redone.
Returns true if there is an undo facility available and the last operation can be undone.
Sets the text value and marks the control as not-modified (which means that is_text_modified would return false).
Note that this function will not generate the wxEVT_COMMAND_TEXT_UPDATED event.
This function is new since wxWidgets version 2.7.1
Clear text in the text item.
Copies the selected text to the clipboard.
Copies the selected text to the clipboard and removes the selection.
Resets the internal 'modified' flag as if the current edits had been saved.
Returns the style currently used for the new text.
Returns the insertion point. This is defined as the zero based index of the character position to the right of the insertion point. For example, if the insertion point is at the end of the text control, it is equal to length( get_text_value( text ) ).
Returns the length of the text buffer currently in the Control.
Returns the contents of a given line in the text control, not including any trailing newline character(s).
Returns the number of lines in the text control buffer.
Gets the length of the specified line, not including any trailing newline character(s).
Returns the value of the text control after passing it through Euphoria's value() function.
Returns the string containing the text starting in the positions from and up to to in the control. The positions must have been returned by another wxTextCtrl method.
Please note that the positions in a multiline wxTextCtrl do not correspond to the indices in the string returned by get_text_value because of the different new line representations (CR or CR LF) and so this method should be used to obtain the correct results instead of extracting parts of the entire value. It may also be more efficient, especially if the control contains a lot of data.
Gets the text currently selected in the control. If there is no selection, the returned string is empty.
Gets the current selection span. If the returned values are equal, there was no selection.
Please note that the indices returned may be used with the other wxTextCtrl methods but don't necessarily represent the correct indices into the string returned by GetValue() for multiline controls under Windows (at least,) you should use get_text_selection to get the selected text.
Returns the style at this position in the text control. Not all platforms support this function.
This retrives the text stored in a wxTextCtrl buffer. It will return the actual string, if you want the actual value, such as a numeric value, use get_text_number() instead.
Returns true if the controls contents may be edited by user (note that it always can be changed by the program), i.e. if the control hasn't been put in read-only mode by a previous call to set_text_editable.
Returns true if the control is currently empty. This is the same as length( get_text_value( text ) ) but can be much more efficient for the multiline controls containing big amounts of text.
This function is new since wxWidgets version 2.7.1
Returns true if the text has been modified by user. Note that calling set_text doesn't make the control modified.
Returns true if this is a multi line edit control and false otherwise.
Returns true if this is a single line edit control and false otherwise.
Loads and displays the named file, if it exists.
Mark text as modified (dirty).
Pastes the text from the clipboard to the text item.
Converts given position to a zero-based column, line number pair.
Redo last operation in the text item.
Replaces the text starting at the first position up to (but not including) the character at the last position with the given text.
Saves the contents of the control in a text file.
Set's the highlight area for the wxTextCtrl to the entire buffer. Similarly, you can do: set_text_selection(myEdit,0,-1) or set_text_selection(myEdit,0,get_text_length(myEdit))
Changes the default style to use for the new text which is going to be added to the control using write_text().
Set maximum number of lines in text item.
Replaces the text in the control with val.
Makes the text item editable or read-only, overriding the wxTE_READONLY flag.
Sets the insertion point at the given position.
Sets the insertion point at the end of the text control.
Marks the control as being modified by the user or not.
Set the highlight area in a wxTextCtrl
Makes the line containing the given position visible.
This function finds the character at the specified position expressed in pixels.
Undo last operation in the text item.
Writes the text at the current insertion point.
Converts the given zero based column (x) and line number (y) to a position.