wxTextCtrl
Creation Parameters
- atom parent
- integer id
- sequence text
- integer x
- integer y
- integer cx
- integer cy
- atom style
- wxTE_PROCESS_ENTER The control will generate the message wxEVENT_TYPE_TEXT_ENTER_COMMAND
(otherwise pressing is either processed internally by the control or used for navigation
between dialog controls).
- wxTE_PROCESS_TAB 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.
- wxTE_MULTILINE The text control allows multiple lines.
- wxTE_PASSWORD The text will be echoed as asterisks.
- wxTE_READONLY The text will not be user-editable.
- wxTE_RICH 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.
- wxTE_RICH2 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).
- wxTE_AUTO_URL Highlight the URLs and generate the wxTextUrlEvents when mouse events
occur over them. This style is supported under Win32 only and requires wxTE_RICH.
- wxTE_NOHIDESEL 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.
- wxHSCROLL A horizontal scrollbar will be created. No effect under GTK+.
- wxTE_LEFT The text control will be left-justified (default).
- wxTE_CENTRE The text control will be centre-justified.
- wxTE_RIGHT The text control will be right-justified.
- wxTE_DONTWRAP Same as wxHSCROLL style.
Events associated with wxTextCtrl:
- wxEVT_COMMAND_TEXT_UPDATED 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)
- wxEVT_COMMAND_TEXT_ENTER Generated when enter is pressed in a single-line text control.
- wxEVT_TEXT_URL A mouse event occured over an URL in the text control (Win32 only)
- wxEVT_TEXT_MAXLEN User tried to enter more text into the control than the limit set by SetMaxLength.
Functions/Procedures
- proc append_text( atom text, sequence val )
- func can_copy_text( atom text )
- func can_cut_text( atom text )
- func can_paste_text( atom text )
- func can_redo_text( atom text )
- func can_undo_text( atom text )
- proc change_text_value( atom text, sequence str )
- proc clear_text( atom text )
- proc copy_text( atom text )
- proc cut_text( atom text )
- proc discard_text_edits( atom text )
- func get_default_text_style( atom text )
- func get_text_insertion_point( atom text )
- func get_text_length( atom text )
- func get_text_line( atom text, atom line )
- func get_text_lines( atom text )
- func get_text_line_length( atom text, atom line )
- func get_text_number( atom textctrl )
- func get_text_range( atom text, atom text_from, atom text_to )
- func get_text_selection( atom text )
- func get_text_selection_range( atom text )
- func get_text_style( atom text, atom position )
- func get_text_value( atom text )
- func is_text_editable( atom text )
- func is_text_empty( atom text )
- func is_text_modified( atom text )
- func is_text_multi_line( atom text )
- func is_text_single_line( atom text )
- func load_text_file( atom text, sequence file )
- proc mark_text_dirty( atom text )
- proc paste_text( atom text )
- proc redo_text( atom text )
- proc replace_text( atom text, atom pos_from, atom pos_to, sequence str )
- func save_text_file( atom text, sequence file )
- proc select_all_text( atom text )
- proc set_default_text_style( atom text, atom attr )
- proc set_maximum_text_length( atom text, atom max_text )
- proc set_text( atom text, sequence val )
- proc set_text_editable( atom text, atom editable )
- proc set_text_insertion_point( atom text, atom pos )
- proc set_text_insertion_point_end( atom text )
- proc set_text_modified( atom text, atom modified )
- proc set_text_selection( atom text, atom first, atom last )
- proc set_text_style( atom text, atom first, atom last, atom attr )
- proc show_text_position( atom text, atom pos )
- proc undo_text( atom text )
- proc write_text( atom ctrl, sequence text )
Supertopics
Subtopics
wxTextCtrl
Category:
wxTextCtrl
This appends text to the end of the wxTextCtrl buffer.
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
Clear text in the text item.
wxTextCtrl
Category:
wxTextCtrl
Copies the selected text to the clipboard.
wxTextCtrl
Category:
wxTextCtrl
Copies the selected text to the clipboard and removes the selection.
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
Returns the length of the text buffer currently in the Control.
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
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
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
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
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
Pastes the text from the clipboard to the text item.
wxTextCtrl
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
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
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
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
Category:
wxTextCtrl
Set maximum number of lines in text item.
wxTextCtrl
Category:
wxTextCtrl
Replaces the text in the control with val.
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Category:
wxTextCtrl
Set the highlight area in a wxTextCtrl
wxTextCtrl
[proc]
set_text_style ( atom text, atom first, atom last, atom attr )
Category:
wxTextCtrl
- text: The wxTextCtrl
- first: The start of selection to change.
- last: The end of selection to change.
- attr: The wxTextAttr which holds the new style for the selection
wxTextCtrl
Category:
wxTextCtrl
wxTextCtrl
Returns atom
Category:
wxTextCtrl
Undo last operation in the text item.
wxTextCtrl
Category:
wxTextCtrl
Writes the text at the current insertion point.