wxTextCtrl

wxTextCtrl
Creation Parameters
Events associated with wxTextCtrl:
Functions/Procedures
Supertopics
Subtopics

wxTextCtrl

[proc]
append_text
( atom text, sequence val )

Category: wxTextCtrl

This appends text to the end of the wxTextCtrl buffer.


wxTextCtrl

[func]
can_copy_text
( atom text )

Category: wxTextCtrl

Returns true if the selection can be copied to the clipboard.


wxTextCtrl

[func]
can_cut_text
( atom text )

Category: wxTextCtrl

Returns true if the selection can be cut to the clipboard.


wxTextCtrl

[func]
can_paste_text
( atom text )

Category: wxTextCtrl

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.


wxTextCtrl

[func]
can_redo_text
( atom text )

Category: wxTextCtrl

Returns true if there is a redo facility available and the last operation can be redone.


wxTextCtrl

[func]
can_undo_text
( atom text )

Category: wxTextCtrl

Returns true if there is an undo facility available and the last operation can be undone.


wxTextCtrl

[proc]
change_text_value
( atom text, sequence str )

Category: wxTextCtrl

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


wxTextCtrl

[proc]
clear_text
( atom text )

Category: wxTextCtrl

Clear text in the text item.


wxTextCtrl

[proc]
copy_text
( atom text )

Category: wxTextCtrl

Copies the selected text to the clipboard.


wxTextCtrl

[proc]
cut_text
( atom text )

Category: wxTextCtrl

Copies the selected text to the clipboard and removes the selection.


wxTextCtrl

[proc]
discard_text_edits
( atom text )

Category: wxTextCtrl

Resets the internal 'modified' flag as if the current edits had been saved.


wxTextCtrl

[func]
get_default_text_style
( atom text )

Category: wxTextCtrl

Returns the style currently used for the new text.


wxTextCtrl

[func]
get_text_insertion_point
( atom text )

Category: wxTextCtrl

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 ) ).


wxTextCtrl

[func]
get_text_length
( atom text )

Category: wxTextCtrl

Returns the length of the text buffer currently in the Control.


wxTextCtrl

[func]
get_text_line
( atom text, atom line )

Category: wxTextCtrl

Returns the contents of a given line in the text control, not including any trailing newline character(s).


wxTextCtrl

[func]
get_text_lines
( atom text )

Category: wxTextCtrl

Returns the number of lines in the text control buffer.


wxTextCtrl

[func]
get_text_line_length
( atom text, atom line )

Category: wxTextCtrl

Gets the length of the specified line, not including any trailing newline character(s).


wxTextCtrl

[func]
get_text_number
( atom textctrl )

Category: wxTextCtrl

Returns the value of the text control after passing it through Euphoria's value() function.


wxTextCtrl

[func]
get_text_range
( atom text, atom text_from, atom text_to )

Category: wxTextCtrl

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.


wxTextCtrl

[func]
get_text_selection
( atom text )

Category: wxTextCtrl

Gets the text currently selected in the control. If there is no selection, the returned string is empty.


wxTextCtrl

[func]
get_text_selection_range
( atom text )

Category: wxTextCtrl

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.


wxTextCtrl

[func]
get_text_style
( atom text, atom position )

Category: wxTextCtrl

Returns the style at this position in the text control. Not all platforms support this function.


wxTextCtrl

[func]
get_text_value
( atom text )

Category: wxTextCtrl

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.


wxTextCtrl

[func]
is_text_editable
( atom text )

Category: wxTextCtrl

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.


wxTextCtrl

[func]
is_text_empty
( atom text )

Category: wxTextCtrl

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


wxTextCtrl

[func]
is_text_modified
( atom text )

Category: wxTextCtrl

Returns true if the text has been modified by user. Note that calling set_text doesn't make the control modified.


wxTextCtrl

[func]
is_text_multi_line
( atom text )

Category: wxTextCtrl

Returns true if this is a multi line edit control and false otherwise.


wxTextCtrl

[func]
is_text_single_line
( atom text )

Category: wxTextCtrl

Returns true if this is a single line edit control and false otherwise.


wxTextCtrl

[func]
load_text_file
( atom text, sequence file )

Category: wxTextCtrl

Loads and displays the named file, if it exists.


wxTextCtrl

[proc]
mark_text_dirty
( atom text )

Category: wxTextCtrl

Mark text as modified (dirty).


wxTextCtrl

[proc]
paste_text
( atom text )

Category: wxTextCtrl

Pastes the text from the clipboard to the text item.


wxTextCtrl

[func]
position_to_xy
( atom ctrl, atom position )

Category: wxTextCtrl

Converts given position to a zero-based column, line number pair.


wxTextCtrl

[proc]
redo_text
( atom text )

Category: wxTextCtrl

Redo last operation in the text item.


wxTextCtrl

[proc]
replace_text
( atom text, atom pos_from, atom pos_to, sequence str )

Category: wxTextCtrl

Replaces the text starting at the first position up to (but not including) the character at the last position with the given text.


wxTextCtrl

[func]
save_text_file
( atom text, sequence file )

Category: wxTextCtrl

Saves the contents of the control in a text file.


wxTextCtrl

[proc]
select_all_text
( atom text )

Category: wxTextCtrl

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))


wxTextCtrl

[proc]
set_default_text_style
( atom text, atom attr )

Category: wxTextCtrl

Changes the default style to use for the new text which is going to be added to the control using write_text().


wxTextCtrl

[proc]
set_maximum_text_length
( atom text, atom max_text )

Category: wxTextCtrl

Set maximum number of lines in text item.


wxTextCtrl

[proc]
set_text
( atom text, sequence val )

Category: wxTextCtrl

Replaces the text in the control with val.


wxTextCtrl

[proc]
set_text_editable
( atom text, atom editable )

Category: wxTextCtrl

Makes the text item editable or read-only, overriding the wxTE_READONLY flag.


wxTextCtrl

[proc]
set_text_insertion_point
( atom text, atom pos )

Category: wxTextCtrl

Sets the insertion point at the given position.


wxTextCtrl

[proc]
set_text_insertion_point_end
( atom text )

Category: wxTextCtrl

Sets the insertion point at the end of the text control.


wxTextCtrl

[proc]
set_text_modified
( atom text, atom modified )

Category: wxTextCtrl

Marks the control as being modified by the user or not.


wxTextCtrl

[proc]
set_text_selection
( atom text, atom first, atom last )

Category: wxTextCtrl

Set the highlight area in a wxTextCtrl


wxTextCtrl

[proc]
set_text_style
( atom text, atom first, atom last, atom attr )

Category: wxTextCtrl


wxTextCtrl

[proc]
show_text_position
( atom text, atom pos )

Category: wxTextCtrl

Makes the line containing the given position visible.


wxTextCtrl

[func]
text_hit_test
( atom ctrl, atom x, atom y )

Category: wxTextCtrl

This function finds the character at the specified position expressed in pixels.


wxTextCtrl

[proc]
undo_text
( atom text )

Category: wxTextCtrl

Undo last operation in the text item.


wxTextCtrl

[proc]
write_text
( atom ctrl, sequence text )

Category: wxTextCtrl

Writes the text at the current insertion point.


wxTextCtrl

[func]
xy_to_position
( atom ctrl, atom x, atom y )

Category: wxTextCtrl

Converts the given zero based column (x) and line number (y) to a position.