Table of Contents

wxTextCtrl

include file: wxText.e


Creation parameters: Events associated with wxTextCtrl:

  • proc append_text( atom text, sequence val )   
  • proc copy_text( atom text )   
  • proc cut_text( atom text )   
  • func get_text_length( atom text )   
  • func get_text_number( atom textctrl )   
  • func get_text_value( atom text )   
  • proc paste_text( atom text )   
  • proc select_all_text( atom text )   
  • proc set_default_text_style( atom text, atom attr )   
  • proc set_text( atom text, sequence val )   
  • proc set_text_selection( atom text, atom first, atom last )   
  • proc set_text_style( atom text, atom first, atom last, atom attr )   
  • proc write_text( atom ctrl, sequence text )     
     
    Parent Topics:
  • Classes
  • Controls  
     
    Subtopics:
  • wxTextAttr


    Table of Contents

    [proc]
    append_text
    ( atom text, sequence val )

    Category: wxTextCtrl

    This appends text to the end of the wxTextCtrl buffer.

    See Also: copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

    [proc]
    copy_text
    ( atom text )

    Category: wxTextCtrl

    Copies the selected text to the clipboard.

    See Also: append_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

    [proc]
    cut_text
    ( atom text )

    Category: wxTextCtrl

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

    See Also: append_text, copy_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

    [func]
    get_text_length
    ( atom text )

    Category: wxTextCtrl

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

    See Also: append_text, copy_text, cut_text, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

    [func]
    get_text_number
    ( atom textctrl )

    Category: wxTextCtrl

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

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

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

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

    [proc]
    paste_text
    ( atom text )

    Category: wxTextCtrl

    Pastes the text from the clipboard to the text item.

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

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

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

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

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_text, set_text_selection, set_text_style, write_text



    Table of Contents

    [proc]
    set_text
    ( atom text, sequence val )

    Category: wxTextCtrl

    Replaces the text in the control with val.

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text_selection, set_text_style, write_text



    Table of Contents

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

    Category: wxTextCtrl

    Set the highlight area in a wxTextCtrl

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_style, write_text



    Table of Contents

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

    Category: wxTextCtrl

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, write_text



    Table of Contents

    [proc]
    write_text
    ( atom ctrl, sequence text )

    Category: wxTextCtrl

    Writes the text at the current insertion point.

    See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style