Class: Wx::RTC::RichTextCtrl

Inherits:
Control show all
Includes:
TextEntry
Defined in:
lib/wx/doc/gen/rtc/rich_text_ctrl.rb,
lib/wx/doc/rtc/rich_text_ctrl.rb

Overview

RichTextCtrl provides a generic, ground-up implementation of a text control capable of showing multiple styles and images.

RichTextCtrl sends notification events: see RichTextEvent. It also sends the standard TextCtrl events EVT_TEXT_ENTER and EVT_TEXT, and TextUrlEvent when URL content is clicked. For more information, see the wxRichTextCtrl Overview.

Styles

This class supports the following styles:

Category: Rich Text <div class=‘appearance’><span class=‘appearance’>Appearance:</span><table><tr><td> WXMSW Appearance </td><td> WXGTK Appearance </td><td> WXOSX Appearance </td></tr></table></div>

Requires:

  • USE_RICHTEXT

Class Method Summary collapse

Instance Method Summary collapse

Methods included from TextEntry

#auto_complete, #auto_complete_directories, #auto_complete_file_names, #change_value, #force_upper, #get_hint, #get_margins, #is_empty, #set_hint, #set_margins

Methods inherited from Control

ellipsize, escape_mnemonics, #get_label, #get_label_text, #get_size_from_text, #get_size_from_text_size, remove_mnemonics, #set_label, #set_label_markup, #set_label_text

Methods inherited from Window

#accepts_focus, #accepts_focus_from_keyboard, #accepts_focus_recursively, #add_child, #adjust_for_layout_direction, #always_show_scrollbars, #begin_repositioning_children, #cache_best_size, #can_accept_focus, #can_accept_focus_from_keyboard, #can_scroll, #can_set_transparent, #capture_mouse, #center, #center_on_parent, #centre, #centre_on_parent, #clear_background, #client_to_screen, #client_to_window_size, #close, #convert_dialog_to_pixels, #convert_pixels_to_dialog, #destroy, #destroy_children, #disable, #disable_focus_from_keyboard, #do_prepare_update_window_ui, #do_update_window_ui, #drag_accept_files, #each_child, #enable, #enable_touch_events, #enable_visible_focus, #end_repositioning_children, find_focus, #find_window_by_id, find_window_by_id, #find_window_by_label, find_window_by_label, #find_window_by_name, find_window_by_name, #fit, #fit_inside, #freeze, #from_dip, from_dip, #from_phys, from_phys, #get_accelerator_table, #get_auto_layout, #get_background_colour, #get_background_style, #get_best_height, #get_best_size, #get_best_virtual_size, #get_best_width, #get_border, get_capture, #get_caret, #get_char_height, #get_char_width, #get_children, get_class_default_attributes, #get_client_area_origin, #get_client_rect, #get_client_size, #get_containing_sizer, #get_content_scale_factor, #get_cursor, #get_cursor_bundle, #get_default_attributes, #get_dpi, #get_dpi_scale_factor, #get_drop_target, #get_effective_min_size, #get_event_handler, #get_extra_style, #get_font, #get_foreground_colour, #get_grand_parent, #get_help_text, #get_help_text_at_point, #get_id, #get_label, #get_layout_direction, #get_max_client_size, #get_max_height, #get_max_size, #get_max_width, #get_min_client_size, #get_min_height, #get_min_size, #get_min_width, #get_name, #get_next_sibling, #get_parent, #get_popup_menu_selection_from_user, #get_position, #get_prev_sibling, #get_rect, #get_screen_position, #get_screen_rect, #get_scroll_pos, #get_scroll_range, #get_scroll_thumb, #get_size, #get_sizer, #get_text_extent, #get_theme_enabled, #get_tool_tip, #get_tool_tip_text, #get_update_client_rect, #get_update_region, #get_validator, #get_virtual_size, #get_window_border_size, #get_window_style, #get_window_style_flag, #get_window_variant, #handle_as_navigation_key, #handle_window_event, #has_capture, #has_extra_style, #has_flag, #has_focus, #has_multiple_pages, #has_scrollbar, #has_transparent_background, #hide, #hide_with_effect, #inform_first_direction, #inherit_attributes, #inherits_background_colour, #inherits_foreground_colour, #init_dialog, #invalidate_best_size, #is_being_deleted, #is_descendant, #is_double_buffered, #is_enabled, #is_exposed, #is_focusable, #is_frozen, #is_retained, #is_scrollbar_always_shown, #is_shown, #is_shown_on_screen, #is_this_enabled, #is_top_level, #is_transparent_background_supported, #layout, #line_down, #line_up, #locked, #lower_window, #move, #move_after_in_tab_order, #move_before_in_tab_order, #msw_disable_composited, #navigate, #navigate_in, new_control_id, #on_internal_idle, #paint, #paint_buffered, #pop_event_handler, #popup_menu, #post_size_event, #post_size_event_to_parent, #process_window_event, #process_window_event_locally, #push_event_handler, #raise_window, #refresh, #refresh_rect, #register_hot_key, #release_mouse, #remove_child, #remove_event_handler, #reparent, #screen_to_client, #scroll_lines, #scroll_pages, #scroll_window, #send_size_event, #send_size_event_to_parent, #set_accelerator_table, #set_auto_layout, #set_background_colour, #set_background_style, #set_can_focus, #set_caret, #set_client_size, #set_containing_sizer, #set_cursor, #set_cursor_bundle, #set_double_buffered, #set_drop_target, #set_event_handler, #set_extra_style, #set_focus, #set_focus_from_kbd, #set_foreground_colour, #set_help_text, #set_id, #set_initial_size, #set_label, #set_layout_direction, #set_max_client_size, #set_max_size, #set_min_client_size, #set_min_size, #set_name, #set_next_handler, #set_own_background_colour, #set_own_font, #set_own_foreground_colour, #set_position, #set_previous_handler, #set_scroll_pos, #set_scrollbar, #set_size, #set_size_hints, #set_sizer, #set_sizer_and_fit, #set_theme_enabled, #set_tool_tip, #set_transparent, #set_validator, #set_virtual_size, #set_window_style, #set_window_style_flag, #set_window_variant, #show, #show_with_effect, #switch_sizer, #thaw, #to_dip, to_dip, #to_phys, to_phys, #toggle_window_style, #transfer_data_from_window, #transfer_data_to_window, #unregister_hot_key, unreserve_control_id, #unset_tool_tip, #update, #update_window_ui, #use_background_colour, #use_bg_col, #use_foreground_colour, #validate, #warp_pointer, #window_to_client_size

Methods inherited from EvtHandler

add_filter, #add_pending_event, #call_after, clear_filters, #connect, #delete_pending_events, #disconnect, #evt_activate, #evt_activate_app, #evt_aui_pane_activated, #evt_aui_pane_button, #evt_aui_pane_close, #evt_aui_pane_maximize, #evt_aui_pane_restore, #evt_aui_render, #evt_auinotebook_allow_dnd, #evt_auinotebook_begin_drag, #evt_auinotebook_bg_dclick, #evt_auinotebook_button, #evt_auinotebook_drag_done, #evt_auinotebook_drag_motion, #evt_auinotebook_end_drag, #evt_auinotebook_page_changed, #evt_auinotebook_page_changing, #evt_auinotebook_page_close, #evt_auinotebook_page_closed, #evt_auinotebook_tab_middle_down, #evt_auinotebook_tab_middle_up, #evt_auinotebook_tab_right_down, #evt_auinotebook_tab_right_up, #evt_auitoolbar_begin_drag, #evt_auitoolbar_middle_click, #evt_auitoolbar_overflow_click, #evt_auitoolbar_right_click, #evt_auitoolbar_tool_dropdown, #evt_button, #evt_calculate_layout, #evt_calendar, #evt_calendar_page_changed, #evt_calendar_sel_changed, #evt_calendar_week_clicked, #evt_calendar_weekday_clicked, #evt_char, #evt_char_hook, #evt_checkbox, #evt_checklistbox, #evt_child_focus, #evt_choice, #evt_choicebook_page_changed, #evt_choicebook_page_changing, #evt_close, #evt_collapsiblepane_changed, #evt_colourpicker_changed, #evt_colourpicker_current_changed, #evt_colourpicker_dialog_cancelled, #evt_combobox, #evt_combobox_closeup, #evt_combobox_dropdown, #evt_command, #evt_command_enter, #evt_command_kill_focus, #evt_command_left_click, #evt_command_left_dclick, #evt_command_range, #evt_command_right_click, #evt_command_scroll, #evt_command_scroll_bottom, #evt_command_scroll_changed, #evt_command_scroll_linedown, #evt_command_scroll_lineup, #evt_command_scroll_pagedown, #evt_command_scroll_pageup, #evt_command_scroll_thumbrelease, #evt_command_scroll_thumbtrack, #evt_command_scroll_top, #evt_command_set_focus, #evt_context_menu, #evt_date_changed, #evt_dialup_connected, #evt_dialup_disconnected, #evt_dirctrl_fileactivated, #evt_dirctrl_selectionchanged, #evt_dirpicker_changed, #evt_dpi_changed, #evt_drop_files, #evt_end_session, #evt_enter_window, #evt_erase_background, #evt_filectrl_fileactivated, #evt_filectrl_filterchanged, #evt_filectrl_folderchanged, #evt_filectrl_selectionchanged, #evt_filepicker_changed, #evt_find, #evt_find_close, #evt_find_next, #evt_find_replace, #evt_find_replace_all, #evt_fontpicker_changed, #evt_fullscreen, #evt_gesture_pan, #evt_gesture_rotate, #evt_gesture_zoom, #evt_grid_cell_changed, #evt_grid_cell_changing, #evt_grid_cell_left_click, #evt_grid_cell_left_dclick, #evt_grid_cell_right_click, #evt_grid_cell_right_dclick, #evt_grid_cmd_col_size, #evt_grid_cmd_editor_created, #evt_grid_cmd_range_selected, #evt_grid_cmd_range_selecting, #evt_grid_cmd_row_size, #evt_grid_col_auto_size, #evt_grid_col_label_size, #evt_grid_col_move, #evt_grid_col_size, #evt_grid_col_sort, #evt_grid_editor_created, #evt_grid_editor_hidden, #evt_grid_editor_shown, #evt_grid_label_left_click, #evt_grid_label_left_dclick, #evt_grid_label_right_click, #evt_grid_label_right_dclick, #evt_grid_range_selected, #evt_grid_range_selecting, #evt_grid_row_auto_size, #evt_grid_row_label_size, #evt_grid_row_move, #evt_grid_row_size, #evt_grid_select_cell, #evt_grid_tabbing, #evt_header_begin_reorder, #evt_header_begin_resize, #evt_header_click, #evt_header_dclick, #evt_header_dragging_cancelled, #evt_header_end_reorder, #evt_header_end_resize, #evt_header_middle_click, #evt_header_middle_dclick, #evt_header_resizing, #evt_header_right_click, #evt_header_right_dclick, #evt_header_separator_dclick, #evt_help, #evt_help_range, #evt_hibernate, #evt_hotkey, #evt_html_cell_clicked, #evt_html_cell_hover, #evt_html_link_clicked, #evt_hyperlink, #evt_iconize, #evt_idle, #evt_init_dialog, #evt_joy_button_down, #evt_joy_button_up, #evt_joy_move, #evt_joy_zmove, #evt_joystick_events, #evt_key_down, #evt_key_up, #evt_kill_focus, #evt_leave_window, #evt_left_dclick, #evt_left_down, #evt_left_up, #evt_list_begin_drag, #evt_list_begin_label_edit, #evt_list_begin_rdrag, #evt_list_cache_hint, #evt_list_col_begin_drag, #evt_list_col_click, #evt_list_col_dragging, #evt_list_col_end_drag, #evt_list_col_right_click, #evt_list_delete_all_items, #evt_list_delete_item, #evt_list_end_label_edit, #evt_list_insert_item, #evt_list_item_activated, #evt_list_item_checked, #evt_list_item_deselected, #evt_list_item_focused, #evt_list_item_middle_click, #evt_list_item_right_click, #evt_list_item_selected, #evt_list_item_unchecked, #evt_list_key_down, #evt_listbook_page_changed, #evt_listbook_page_changing, #evt_listbox, #evt_listbox_dclick, #evt_long_press, #evt_magnify, #evt_maximize, #evt_media_finished, #evt_media_loaded, #evt_media_pause, #evt_media_play, #evt_media_statechanged, #evt_media_stop, #evt_menu, #evt_menu_close, #evt_menu_highlight, #evt_menu_highlight_all, #evt_menu_open, #evt_menu_range, #evt_middle_dclick, #evt_middle_down, #evt_middle_up, #evt_motion, #evt_mouse_aux1_dclick, #evt_mouse_aux1_down, #evt_mouse_aux1_up, #evt_mouse_aux2_dclick, #evt_mouse_aux2_down, #evt_mouse_aux2_up, #evt_mouse_events, #evt_mousewheel, #evt_move, #evt_move_end, #evt_move_start, #evt_moving, #evt_navigation_key, #evt_notebook_page_changed, #evt_notebook_page_changing, #evt_paint, #evt_pg_changed, #evt_pg_changing, #evt_pg_col_begin_drag, #evt_pg_col_dragging, #evt_pg_col_end_drag, #evt_pg_double_click, #evt_pg_highlighted, #evt_pg_item_collapsed, #evt_pg_item_expanded, #evt_pg_label_edit_begin, #evt_pg_label_edit_ending, #evt_pg_page_changed, #evt_pg_right_click, #evt_pg_selected, #evt_press_and_tap, #evt_query_end_session, #evt_query_layout_info, #evt_radiobox, #evt_radiobutton, #evt_ribbonbar_help_click, #evt_ribbonbar_page_changed, #evt_ribbonbar_page_changing, #evt_ribbonbar_tab_left_dclick, #evt_ribbonbar_tab_middle_down, #evt_ribbonbar_tab_middle_up, #evt_ribbonbar_tab_right_down, #evt_ribbonbar_tab_right_up, #evt_ribbonbar_toggled, #evt_ribbonbuttonbar_clicked, #evt_ribbonbuttonbar_dropdown_clicked, #evt_ribbongallery_clicked, #evt_ribbongallery_hover_changed, #evt_ribbongallery_selected, #evt_ribbonpanel_extbutton_activated, #evt_ribbontoolbar_clicked, #evt_ribbontoolbar_dropdown_clicked, #evt_richtext_buffer_reset, #evt_richtext_character, #evt_richtext_consuming_character, #evt_richtext_content_deleted, #evt_richtext_content_inserted, #evt_richtext_delete, #evt_richtext_focus_object_changed, #evt_richtext_left_click, #evt_richtext_left_dclick, #evt_richtext_middle_click, #evt_richtext_properties_changed, #evt_richtext_return, #evt_richtext_right_click, #evt_richtext_selection_changed, #evt_richtext_style_changed, #evt_richtext_stylesheet_changed, #evt_richtext_stylesheet_replaced, #evt_richtext_stylesheet_replacing, #evt_right_dclick, #evt_right_down, #evt_right_up, #evt_sash_dragged, #evt_sash_dragged_range, #evt_scroll, #evt_scroll_bottom, #evt_scroll_changed, #evt_scroll_linedown, #evt_scroll_lineup, #evt_scroll_pagedown, #evt_scroll_pageup, #evt_scroll_thumbrelease, #evt_scroll_thumbtrack, #evt_scroll_top, #evt_scrollbar, #evt_scrollwin, #evt_scrollwin_bottom, #evt_scrollwin_linedown, #evt_scrollwin_lineup, #evt_scrollwin_pagedown, #evt_scrollwin_pageup, #evt_scrollwin_thumbrelease, #evt_scrollwin_thumbtrack, #evt_scrollwin_top, #evt_search, #evt_search_cancel, #evt_set_cursor, #evt_set_focus, #evt_show, #evt_size, #evt_slider, #evt_spin, #evt_spin_down, #evt_spin_up, #evt_spinctrl, #evt_spinctrldouble, #evt_splitter_dclick, #evt_splitter_sash_pos_changed, #evt_splitter_sash_pos_changing, #evt_splitter_sash_pos_resize, #evt_splitter_unsplit, #evt_stc_autocomp_cancelled, #evt_stc_autocomp_char_deleted, #evt_stc_autocomp_completed, #evt_stc_autocomp_selection, #evt_stc_autocomp_selection_change, #evt_stc_calltip_click, #evt_stc_change, #evt_stc_charadded, #evt_stc_clipboard_copy, #evt_stc_clipboard_paste, #evt_stc_do_drop, #evt_stc_doubleclick, #evt_stc_drag_over, #evt_stc_dwellend, #evt_stc_dwellstart, #evt_stc_hotspot_click, #evt_stc_hotspot_dclick, #evt_stc_hotspot_release_click, #evt_stc_indicator_click, #evt_stc_indicator_release, #evt_stc_macrorecord, #evt_stc_margin_right_click, #evt_stc_marginclick, #evt_stc_modified, #evt_stc_needshown, #evt_stc_painted, #evt_stc_romodifyattempt, #evt_stc_savepointleft, #evt_stc_savepointreached, #evt_stc_start_drag, #evt_stc_styleneeded, #evt_stc_updateui, #evt_stc_userlistselection, #evt_stc_zoom, #evt_sys_colour_changed, #evt_taskbar_click, #evt_taskbar_left_dclick, #evt_taskbar_left_down, #evt_taskbar_left_up, #evt_taskbar_move, #evt_taskbar_right_dclick, #evt_taskbar_right_down, #evt_taskbar_right_up, #evt_text, #evt_text_copy, #evt_text_cut, #evt_text_enter, #evt_text_maxlen, #evt_text_paste, #evt_text_url, #evt_time_changed, #evt_timer, #evt_togglebutton, #evt_tool, #evt_tool_dropdown, #evt_tool_enter, #evt_tool_range, #evt_tool_rclicked, #evt_tool_rclicked_range, #evt_toolbook_page_changed, #evt_toolbook_page_changing, #evt_tree_begin_drag, #evt_tree_begin_label_edit, #evt_tree_begin_rdrag, #evt_tree_delete_item, #evt_tree_end_drag, #evt_tree_end_label_edit, #evt_tree_get_info, #evt_tree_item_activated, #evt_tree_item_collapsed, #evt_tree_item_collapsing, #evt_tree_item_expanded, #evt_tree_item_expanding, #evt_tree_item_gettooltip, #evt_tree_item_menu, #evt_tree_item_middle_click, #evt_tree_item_right_click, #evt_tree_key_down, #evt_tree_sel_changed, #evt_tree_sel_changing, #evt_tree_set_info, #evt_tree_state_image_click, #evt_treebook_node_collapsed, #evt_treebook_node_expanded, #evt_treebook_page_changed, #evt_treebook_page_changing, #evt_two_finger_tap, #evt_update_ui, #evt_update_ui_range, #evt_window_create, #evt_window_destroy, #evt_wizard_before_page_changed, #evt_wizard_cancel, #evt_wizard_finished, #evt_wizard_help, #evt_wizard_page_changed, #evt_wizard_page_changing, #evt_wizard_page_shown, #get_client_object, #get_evt_handler_enabled, #get_next_handler, #get_previous_handler, #is_unlinked, #process_event, #process_event_locally, #process_pending_events, #queue_event, register_class, remove_filter, #safely_process_event, #set_client_object, #set_evt_handler_enabled, #set_next_handler, #try_after, #try_before, #unlink

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initializeWx::RTC::RichTextCtrl #initialize(parent, id = -1, value = (''), pos = Wx::DEFAULT_POSITION, size = Wx::DEFAULT_SIZE, style = Wx::RTC::RE_MULTILINE, validator = Wx::DEFAULT_VALIDATOR, name = Wx::TEXT_CTRL_NAME_STR) ⇒ Wx::RTC::RichTextCtrl #initialize(parent, id = -1, value = (''), pos = Wx::DEFAULT_POSITION, size = Wx::DEFAULT_SIZE, style = Wx::RTC::RE_MULTILINE, validator = Wx::DEFAULT_VALIDATOR, name = Wx::TEXT_CTRL_NAME_STR) {|win| ... } ⇒ Wx::RTC::RichTextCtrl

Returns a new instance of RichTextCtrl.

Overloads:

  • #initializeWx::RTC::RichTextCtrl

    Default constructor.

  • #initialize(parent, id = -1, value = (''), pos = Wx::DEFAULT_POSITION, size = Wx::DEFAULT_SIZE, style = Wx::RTC::RE_MULTILINE, validator = Wx::DEFAULT_VALIDATOR, name = Wx::TEXT_CTRL_NAME_STR) ⇒ Wx::RTC::RichTextCtrl

    Constructor, creating and showing a rich text control.

    Parameters:

    • parent (Wx::Window)

      Parent window. Must not be nil.

    • id (Integer) (defaults to: -1)

      Window identifier. The value StandardID::ID_ANY indicates a default value.

    • value (String) (defaults to: (''))

      Default string.

    • pos (Array(Integer, Integer), Wx::Point) (defaults to: Wx::DEFAULT_POSITION)

      Window position.

    • size (Array(Integer, Integer), Wx::Size) (defaults to: Wx::DEFAULT_SIZE)

      Window size.

    • style (Integer) (defaults to: Wx::RTC::RE_MULTILINE)

      Window style.

    • validator (Wx::Validator) (defaults to: Wx::DEFAULT_VALIDATOR)

      Window validator.

    • name (String) (defaults to: Wx::TEXT_CTRL_NAME_STR)

      Window name.

    See Also:

  • #initialize(parent, id = -1, value = (''), pos = Wx::DEFAULT_POSITION, size = Wx::DEFAULT_SIZE, style = Wx::RTC::RE_MULTILINE, validator = Wx::DEFAULT_VALIDATOR, name = Wx::TEXT_CTRL_NAME_STR) {|win| ... } ⇒ Wx::RTC::RichTextCtrl

    Constructor, creating and showing a rich text control.

    Parameters:

    • parent (Wx::Window)

      Parent window. Must not be nil.

    • id (Integer) (defaults to: -1)

      Window identifier. The value StandardID::ID_ANY indicates a default value.

    • value (String) (defaults to: (''))

      Default string.

    • pos (Array(Integer, Integer), Wx::Point) (defaults to: Wx::DEFAULT_POSITION)

      Window position.

    • size (Array(Integer, Integer), Wx::Size) (defaults to: Wx::DEFAULT_SIZE)

      Window size.

    • style (Integer) (defaults to: Wx::RTC::RE_MULTILINE)

      Window style.

    • validator (Wx::Validator) (defaults to: Wx::DEFAULT_VALIDATOR)

      Window validator.

    • name (String) (defaults to: Wx::TEXT_CTRL_NAME_STR)

      Window name.

    Yield Parameters:

    See Also:



235
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 235

def initialize(*args) end

Class Method Details

.clear_available_font_namesvoid

This method returns an undefined value.

Clears the cache of available font names.



1923
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1923

def self.clear_available_font_names; end

.get_available_font_namesWx::ArrayString

Font names take a long time to retrieve, so cache them (on demand).

Returns:

  • (Wx::ArrayString)


1919
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1919

def self.get_available_font_names; end

Instance Method Details

#add_image(image) ⇒ Range

Adds an image to the control’s buffer.

Parameters:

Returns:

  • (Range)


1266
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1266

def add_image(image) end

#add_paragraph(text) ⇒ Range

Adds a new paragraph of text to the end of the buffer.

Parameters:

  • text (String)

Returns:

  • (Range)


1261
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1261

def add_paragraph(text) end

#append_text(text) ⇒ void

This method returns an undefined value.

Sets the insertion point to the end of the buffer and writes the text.

Parameters:

  • text (String)


610
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 610

def append_text(text) end

#apply_alignment_to_selection(alignment) ⇒ Boolean

Applies the given alignment to the selection or the default style (undoable).

For alignment values, see TextAttr.

Parameters:

Returns:

  • (Boolean)


1453
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1453

def apply_alignment_to_selection(alignment) end

#apply_bold_to_selectionBoolean

Apples bold to the selection or the default style (undoable).

Returns:

  • (Boolean)


1431
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1431

def apply_bold_to_selection; end

#apply_italic_to_selectionBoolean

Applies italic to the selection or the default style (undoable).

Returns:

  • (Boolean)


1435
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1435

def apply_italic_to_selection; end

#apply_style(def_) ⇒ Boolean

Applies the style sheet to the buffer, matching paragraph styles in the sheet against named styles in the buffer.

This might be useful if the styles have changed. If sheet is nil, the sheet set with #set_style_sheet is used. Currently this applies paragraph styles only.

Parameters:

Returns:

  • (Boolean)


1460
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1460

def apply_style(def_) end

#apply_style_sheet(styleSheet = nil) ⇒ Boolean

Applies the style sheet to the buffer, for example if the styles have changed.

Parameters:

Returns:

  • (Boolean)


1489
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1489

def apply_style_sheet(styleSheet=nil) end

#apply_text_effect_to_selection(flags) ⇒ Boolean

Applies one or more TextAttrEffects flags to the selection (undoable).

If there is no selection, it is applied to the default style.

Parameters:

  • flags (Integer)

Returns:

  • (Boolean)


1446
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1446

def apply_text_effect_to_selection(flags) end

#apply_underline_to_selectionBoolean

Applies underline to the selection or the default style (undoable).

Returns:

  • (Boolean)


1439
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1439

def apply_underline_to_selection; end

#batching_undoBoolean

Returns true if undo commands are being batched.

Returns:

  • (Boolean)


1370
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1370

def batching_undo; end

#begin_alignment(alignment) ⇒ Boolean

Begins using alignment.

For alignment values, see TextAttr.

Parameters:

Returns:

  • (Boolean)


1078
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1078

def begin_alignment(alignment) end

#begin_batch_undo(cmdName) ⇒ Boolean

Starts batching undo history for commands.

Parameters:

  • cmdName (String)

Returns:

  • (Boolean)


1362
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1362

def begin_batch_undo(cmdName) end

#begin_boldBoolean

Begins using bold.

Returns:

  • (Boolean)


1024
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1024

def begin_bold; end

#begin_character_style(characterStyle) ⇒ Boolean

Begins using the named character style.

Parameters:

  • characterStyle (String)

Returns:

  • (Boolean)


1173
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1173

def begin_character_style(characterStyle) end

#begin_font(font) ⇒ Boolean

Begins using this font.

Parameters:

Returns:

  • (Boolean)


1058
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1058

def begin_font(font) end

#begin_font_size(pointSize) ⇒ Boolean

Begins using the given point size.

Parameters:

  • pointSize (Integer)

Returns:

  • (Boolean)


1049
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1049

def begin_font_size(pointSize) end

#begin_italicBoolean

Begins using italic.

Returns:

  • (Boolean)


1032
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1032

def begin_italic; end

#begin_left_indent(leftIndent, leftSubIndent = 0) ⇒ Boolean

Begins applying a left indent and subindent in tenths of a millimetre.

The subindent is an offset from the left edge of the paragraph, and is used for all but the first line in a paragraph. A positive value will cause the first line to appear to the left of the subsequent lines, and a negative value will cause the first line to be indented to the right of the subsequent lines. Wx::RTC::RichTextBuffer uses indentation to render a bulleted item. The content of the paragraph, including the first line, starts at the leftIndent plus the leftSubIndent.

Parameters:

  • leftIndent (Integer)

    The distance between the margin and the bullet.

  • leftSubIndent (Integer) (defaults to: 0)

    The distance between the left edge of the bullet and the left edge of the actual paragraph.

Returns:

  • (Boolean)


1091
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1091

def begin_left_indent(leftIndent, leftSubIndent=0) end

#begin_line_spacing(lineSpacing) ⇒ Boolean

Begins applying line spacing.

spacing is a multiple, where 10 means single-spacing, 15 means 1.5 spacing, and 20 means double spacing. The TextAttrLineSpacing constants are defined for convenience.

Parameters:

  • lineSpacing (Integer)

Returns:

  • (Boolean)


1122
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1122

def begin_line_spacing(lineSpacing) end

#begin_list_style(listStyle, level = 1, number = 1) ⇒ Boolean

Begins using a specified list style.

Optionally, you can also pass a level and a number.

Parameters:

  • listStyle (String)
  • level (Integer) (defaults to: 1)
  • number (Integer) (defaults to: 1)

Returns:

  • (Boolean)


1195
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1195

def begin_list_style(listStyle, level=1, number=1) end

#begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle = (Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD)) ⇒ Boolean

Begins a numbered bullet.

This call will be needed for each item in the list, and the application should take care of incrementing the numbering. bulletNumber is a number, usually starting with 1. leftIndent and leftSubIndent are values in tenths of a millimetre. bulletStyle is a bitlist of the TextAttrBulletStyle values. Wx::RTC::RichTextBuffer uses indentation to render a bulleted item. The left indent is the distance between the margin and the bullet. The content of the paragraph, including the first line, starts at leftMargin + leftSubIndent. So the distance between the left edge of the bullet and the left of the actual paragraph is leftSubIndent.

Parameters:

  • bulletNumber (Integer)
  • leftIndent (Integer)
  • leftSubIndent (Integer)
  • bulletStyle (Integer) (defaults to: (Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD))

Returns:

  • (Boolean)


1138
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1138

def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD)) end

#begin_paragraph_spacing(before, after) ⇒ Boolean

Begins paragraph spacing; pass the before-paragraph and after-paragraph spacing in tenths of a millimetre.

Parameters:

  • before (Integer)
  • after (Integer)

Returns:

  • (Boolean)


1110
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1110

def begin_paragraph_spacing(before, after) end

#begin_paragraph_style(paragraphStyle) ⇒ Boolean

Begins applying the named paragraph style.

Parameters:

  • paragraphStyle (String)

Returns:

  • (Boolean)


1182
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1182

def begin_paragraph_style(paragraphStyle) end

#begin_right_indent(rightIndent) ⇒ Boolean

Begins a right indent, specified in tenths of a millimetre.

Parameters:

  • rightIndent (Integer)

Returns:

  • (Boolean)


1100
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1100

def begin_right_indent(rightIndent) end

#begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle = Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD) ⇒ Boolean

Begins applying a symbol bullet.

Parameters:

  • bulletName (String)
  • leftIndent (Integer)
  • leftSubIndent (Integer)
  • bulletStyle (Integer) (defaults to: Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD)

Returns:

  • (Boolean)


1164
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1164

def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD) end

#begin_style(style) ⇒ Boolean

Begins applying a style.

Parameters:

Returns:

  • (Boolean)


1012
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1012

def begin_style(style) end

#begin_suppress_undoBoolean

Starts suppressing undo history for commands.

Returns:

  • (Boolean)


1374
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1374

def begin_suppress_undo; end

#begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle = Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL) ⇒ Boolean

Begins applying a symbol bullet, using a character from the current font.

See #begin_numbered_bullet for an explanation of how indentation is used to render the bulleted paragraph.

Parameters:

  • symbol (String)
  • leftIndent (Integer)
  • leftSubIndent (Integer)
  • bulletStyle (Integer) (defaults to: Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL)

Returns:

  • (Boolean)


1152
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1152

def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL) end

#begin_text_colour(colour) ⇒ Boolean

Begins using this colour.

Parameters:

Returns:

  • (Boolean)


1067
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1067

def begin_text_colour(colour) end

#begin_underlineBoolean

Begins using underlining.

Returns:

  • (Boolean)


1040
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1040

def begin_underline; end

#begin_url(url, characterStyle = ('')) ⇒ Boolean

Begins applying TextAttrFlags::TEXT_ATTR_URL to the content.

Pass a URL and optionally, a character style to apply, since it is common to mark a URL with a familiar style such as blue text with underlining.

Parameters:

  • url (String)
  • characterStyle (String) (defaults to: (''))

Returns:

  • (Boolean)


1207
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1207

def begin_url(url, characterStyle=('')) end

#can_copyBoolean Also known as: can_copy?

Returns true if selected content can be copied to the clipboard.

Returns:

  • (Boolean)


836
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 836

def can_copy; end

#can_cutBoolean Also known as: can_cut?

Returns true if selected content can be copied to the clipboard and deleted.

Returns:

  • (Boolean)


841
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 841

def can_cut; end

#can_delete_range(container, range) ⇒ Boolean Also known as: can_delete_range?

Can we delete this range? Sends an event to the control.

Parameters:

Returns:

  • (Boolean)


1536
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1536

def can_delete_range(container, range) end

#can_delete_selectionBoolean Also known as: can_delete_selection?

Returns true if selected content can be deleted.

Returns:

  • (Boolean)


851
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 851

def can_delete_selection; end

#can_edit_properties(obj) ⇒ Boolean Also known as: can_edit_properties?

Returns true if we can edit the object’s properties via a GUI.

Parameters:

Returns:

  • (Boolean)


1510
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1510

def can_edit_properties(obj) end

#can_insert_content(container, pos) ⇒ Boolean Also known as: can_insert_content?

Can we insert content at this position? Sends an event to the control.

Parameters:

Returns:

  • (Boolean)


1543
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1543

def can_insert_content(container, pos) end

#can_pasteBoolean Also known as: can_paste?

Returns true if the clipboard content can be pasted to the buffer.

Returns:

  • (Boolean)


846
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 846

def can_paste; end

#can_redoBoolean Also known as: can_redo?

Returns true if there is a command in the command history that can be redone.

Returns:

  • (Boolean)


869
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 869

def can_redo; end

#can_undoBoolean Also known as: can_undo?

Returns true if there is a command in the command history that can be undone.

Returns:

  • (Boolean)


864
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 864

def can_undo; end

#clearvoid

This method returns an undefined value.

Clears the buffer content, leaving a single empty paragraph.

Cannot be undone.



513
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 513

def clear; end

#clear_list_style(range, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) ⇒ Boolean

Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.

flags is a bit list of the following:

Parameters:

  • range (Range)
  • flags (Integer) (defaults to: Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)

Returns:

  • (Boolean)

See Also:



723
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 723

def clear_list_style(range, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end

#command(event) ⇒ void

This method returns an undefined value.

Sends the event to the control.

Parameters:



1637
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1637

def command(event) end

#copyvoid

This method returns an undefined value.

Copies the selected content (if any) to the clipboard.



816
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 816

def copy; end

#create(parent, id = -1,, value = (''), pos = Wx::DEFAULT_POSITION, size = Wx::DEFAULT_SIZE, style = Wx::RTC::RE_MULTILINE, validator = Wx::DEFAULT_VALIDATOR, name = Wx::TEXT_CTRL_NAME_STR) ⇒ Boolean

Creates the underlying window.

Parameters:

  • parent (Wx::Window)
  • id (Integer) (defaults to: -1,)
  • value (String) (defaults to: (''))
  • pos (Array(Integer, Integer), Wx::Point) (defaults to: Wx::DEFAULT_POSITION)
  • size (Array(Integer, Integer), Wx::Size) (defaults to: Wx::DEFAULT_SIZE)
  • style (Integer) (defaults to: Wx::RTC::RE_MULTILINE)
  • validator (Wx::Validator) (defaults to: Wx::DEFAULT_VALIDATOR)
  • name (String) (defaults to: Wx::TEXT_CTRL_NAME_STR)

Returns:

  • (Boolean)


247
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 247

def create(parent, id=-1, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RTC::RE_MULTILINE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR) end

#cutvoid

This method returns an undefined value.

Copies the selected content (if any) to the clipboard and deletes the selection.

This is undoable.



822
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 822

def cut; end

#delete(range) ⇒ Boolean

Deletes the content within the given range.

Parameters:

  • range (Range)

Returns:

  • (Boolean)


803
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 803

def delete(range) end

#delete_selected_contentInteger?

Deletes content if there is a selection, e.g.

when pressing a key. Returns the new caret position in newPos, or leaves it if there was no action. This is undoable.

Returns:

  • (Integer, nil)


1742
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1742

def delete_selected_content; end

#delete_selectionvoid

This method returns an undefined value.

Deletes the content in the selection, if any.

This is undoable.



832
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 832

def delete_selection; end

#discard_editsvoid

This method returns an undefined value.

Sets the buffer’s modified status to false, and clears the buffer’s command history.



587
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 587

def discard_edits; end

#do_load_file(file, fileType) ⇒ Boolean

Helper function for #load_file.

Loads content into the control’s buffer using the given type. If the specified type is Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY, the type is deduced from the filename extension. This function looks for a suitable Wx::RTC::RichTextFileHandler object.

Parameters:

  • file (String)
  • fileType (Integer)

Returns:

  • (Boolean)


545
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 545

def do_load_file(file, fileType) end

#do_save_file(file = (''), fileType = Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) ⇒ Boolean

Helper function for #save_file.

Saves the buffer content using the given type. If the specified type is Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY, the type is deduced from the filename extension. This function looks for a suitable Wx::RTC::RichTextFileHandler object.

Parameters:

  • file (String) (defaults to: (''))
  • fileType (Integer) (defaults to: Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)

Returns:

  • (Boolean)


564
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 564

def do_save_file(file=(''), fileType=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end

#does_selection_have_text_effect_flag(flag) ⇒ Boolean

Returns true if all of the selection, or the content at the current caret position, has the supplied TextAttrEffects flag(s).

Parameters:

  • flag (Integer)

Returns:

  • (Boolean)


1421
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1421

def does_selection_have_text_effect_flag(flag) end

#each_line {|line| ... } ⇒ Object #each_lineEnumerator

Yield each line to the given block. Returns an Enumerator if no block given.

Overloads:

  • #each_line {|line| ... } ⇒ Object

    Returns last result of block.

    Yield Parameters:

    • line (String)

      the line yielded

    Returns:

    • (Object)

      last result of block

  • #each_lineEnumerator

    Returns enumerator.

    Returns:

    • (Enumerator)

      enumerator



21
# File 'lib/wx/doc/rtc/rich_text_ctrl.rb', line 21

def each_line(*) end

#edit_properties(obj, parent) ⇒ Boolean

Edits the object’s properties via a GUI.

Parameters:

Returns:

  • (Boolean)


1517
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1517

def edit_properties(obj, parent) end

#enable_delayed_image_loading(b) ⇒ void

This method returns an undefined value.

Enable or disable delayed image loading.

Parameters:

  • b (Boolean)


1787
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1787

def enable_delayed_image_loading(b) end

#enable_images(b) ⇒ void

This method returns an undefined value.

Enable or disable images.

Parameters:

  • b (Boolean)


1777
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1777

def enable_images(b) end

#enable_virtual_attributes(b) ⇒ void

This method returns an undefined value.

Pass true to let the control use virtual attributes.

The default is false.

Parameters:

  • b (Boolean)


1632
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1632

def enable_virtual_attributes(b) end

#end_alignmentBoolean

Ends alignment.

Returns:

  • (Boolean)


1082
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1082

def end_alignment; end

#end_all_stylesBoolean

Ends application of all styles in the current style stack.

Returns:

  • (Boolean)


1020
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1020

def end_all_styles; end

#end_batch_undoBoolean

Ends batching undo command history.

Returns:

  • (Boolean)


1366
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1366

def end_batch_undo; end

#end_boldBoolean

Ends using bold.

Returns:

  • (Boolean)


1028
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1028

def end_bold; end

#end_character_styleBoolean

Ends application of a named character style.

Returns:

  • (Boolean)


1177
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1177

def end_character_style; end

#end_fontBoolean

Ends using a font.

Returns:

  • (Boolean)


1062
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1062

def end_font; end

#end_font_sizeBoolean

Ends using a point size.

Returns:

  • (Boolean)


1053
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1053

def end_font_size; end

#end_italicBoolean

Ends using italic.

Returns:

  • (Boolean)


1036
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1036

def end_italic; end

#end_left_indentBoolean

Ends left indent.

Returns:

  • (Boolean)


1095
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1095

def end_left_indent; end

#end_line_spacingBoolean

Ends line spacing.

Returns:

  • (Boolean)


1126
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1126

def end_line_spacing; end

#end_list_styleBoolean

Ends using a specified list style.

Returns:

  • (Boolean)


1199
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1199

def end_list_style; end

#end_numbered_bulletBoolean

Ends application of a numbered bullet.

Returns:

  • (Boolean)


1142
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1142

def end_numbered_bullet; end

#end_paragraph_spacingBoolean

Ends paragraph spacing.

Returns:

  • (Boolean)


1114
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1114

def end_paragraph_spacing; end

#end_paragraph_styleBoolean

Ends application of a named paragraph style.

Returns:

  • (Boolean)


1186
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1186

def end_paragraph_style; end

#end_right_indentBoolean

Ends right indent.

Returns:

  • (Boolean)


1104
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1104

def end_right_indent; end

#end_standard_bulletBoolean

Begins applying a standard bullet.

Returns:

  • (Boolean)


1168
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1168

def end_standard_bullet; end

#end_styleBoolean

Ends the current style.

Returns:

  • (Boolean)


1016
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1016

def end_style; end

#end_suppress_undoBoolean

Ends suppressing undo command history.

Returns:

  • (Boolean)


1378
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1378

def end_suppress_undo; end

#end_symbol_bulletBoolean

Ends applying a symbol bullet.

Returns:

  • (Boolean)


1156
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1156

def end_symbol_bullet; end

#end_text_colourBoolean

Ends applying a text colour.

Returns:

  • (Boolean)


1071
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1071

def end_text_colour; end

#end_underlineBoolean

End applying underlining.

Returns:

  • (Boolean)


1044
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1044

def end_underline; end

#end_urlBoolean

Ends applying a URL.

Returns:

  • (Boolean)


1211
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1211

def end_url; end

#extend_cell_selection(table, noRowSteps, noColSteps) ⇒ Boolean

Extends a table selection in the given direction.

Parameters:

Returns:

  • (Boolean)


1671
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1671

def extend_cell_selection(table, noRowSteps, noColSteps) end

#extend_selection(oldPosition, newPosition, flags) ⇒ Boolean

Helper function for extending the selection, returning true if the selection was changed.

Selections are in caret positions.

Parameters:

  • oldPosition (Integer)
  • newPosition (Integer)
  • flags (Integer)

Returns:

  • (Boolean)


1664
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1664

def extend_selection(oldPosition, newPosition, flags) end

#find_caret_position_for_character_position(position, hitTestFlags, container) ⇒ Array(Integer,Boolean)

Find the caret position for the combination of hit-test flags and character position.

Returns the caret position and also an indication of where to place the caret (caretLineStart) since this is ambiguous (same position used for end of line and start of next).

Parameters:

Returns:

  • (Array(Integer,Boolean))


1888
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1888

def find_caret_position_for_character_position(position, hitTestFlags, container) end

#find_next_word_position(direction = 1) ⇒ Integer

Helper function for finding the caret position for the next word.

Direction is 1 (forward) or -1 (backwards).

Parameters:

  • direction (Integer) (defaults to: 1)

Returns:

  • (Integer)


1761
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1761

def find_next_word_position(direction=1) end

#find_range_for_list(pos) ⇒ Array(Range,Boolean)

Given a character position at which there is a list style, find the range encompassing the same list style by looking backwards and forwards.

Parameters:

  • pos (Integer)

Returns:

  • (Array(Range,Boolean))


1871
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1871

def find_range_for_list(pos) end

#force_delayed_layoutvoid

This method returns an undefined value.



364
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 364

def force_delayed_layout; end

#get_adjusted_caret_position(caretPos) ⇒ Integer Also known as: adjusted_caret_position

The adjusted caret position is the character position adjusted to take into account whether we’re at the start of a paragraph, in which case style information should be taken from the next position, not current one.

Parameters:

  • caretPos (Integer)

Returns:

  • (Integer)


1702
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1702

def get_adjusted_caret_position(caretPos) end

#get_basic_styleWx::RTC::RichTextAttr Also known as: basic_style

Gets the basic (overall) style.

This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).



1006
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1006

def get_basic_style; end

#get_bufferWx::RTC::RichTextBuffer Also known as: buffer



1356
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1356

def get_buffer; end

#get_caret_at_line_startBoolean Also known as: caret_at_line_start

Returns true if we are showing the caret position at the start of a line instead of at the end of the previous one.

Returns:

  • (Boolean)


390
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 390

def get_caret_at_line_start; end

#get_caret_positionInteger Also known as: caret_position

Returns the current caret position.

Returns:

  • (Integer)


1696
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1696

def get_caret_position; end

#get_caret_position_for_default_styleInteger Also known as: caret_position_for_default_style

Returns the caret position since the default formatting was changed.

As soon as this position changes, we no longer reflect the default style in the UI. A value of -2 means that we should only reflect the style of the content under the caret.

Returns:

  • (Integer)


1820
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1820

def get_caret_position_for_default_style; end

#get_caret_position_for_index(position, rect, container = nil) ⇒ Boolean Also known as: caret_position_for_index

Returns the caret height and position for the given character position.

If container is null, the current focus object will be used.

Parameters:

Returns:

  • (Boolean)


1722
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1722

def get_caret_position_for_index(position, rect, container=nil) end

#get_command_processorWx::RTC::CommandProcessor Also known as: command_processor

Gets the command processor associated with the control’s buffer.



1735
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1735

def get_command_processor; end

#get_context_menuWx::Menu Also known as: context_menu

Returns the current context menu.

Returns:



447
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 447

def get_context_menu; end

#get_context_menu_properties_infoWx::RTC::RichTextContextMenuPropertiesInfo Also known as: context_menu_properties_info



483
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 483

def get_context_menu_properties_info; end

#get_default_style_exWx::RTC::RichTextAttr Also known as: default_style_ex

Returns the current default style, which can be used to change how subsequently inserted text is displayed.



701
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 701

def get_default_style_ex; end

#get_delayed_image_loadingBoolean Also known as: delayed_image_loading

Returns true if delayed image loading is enabled.

Returns:

  • (Boolean)


1791
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1791

def get_delayed_image_loading; end

#get_delayed_image_processing_requiredBoolean Also known as: delayed_image_processing_required

Gets the flag indicating that delayed image processing is required.

Returns:

  • (Boolean)


1796
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1796

def get_delayed_image_processing_required; end

#get_delayed_image_processing_timeInteger Also known as: delayed_image_processing_time

Returns the last time delayed image processing was performed.

Returns:

  • (Integer)


1807
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1807

def get_delayed_image_processing_time; end

#get_delayed_layout_thresholdInteger Also known as: delayed_layout_threshold

Gets the size of the buffer beyond which layout is delayed during resizing.

This optimizes sizing for large buffers. The default is 20000.

Returns:

  • (Integer)


333
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 333

def get_delayed_layout_threshold; end

#get_dimension_scaleFloat Also known as: dimension_scale

Returns the scale factor for displaying certain dimensions such as indentation and inter-paragraph spacing.

Returns:

  • (Float)


1569
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1569

def get_dimension_scale; end

#get_drag_start_pointWx::Point Also known as: drag_start_point

Get the possible Drag’n’Drop start point.

Returns:



423
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 423

def get_drag_start_point; end

#get_drag_start_timeWx::DateTime Also known as: drag_start_time

Get the possible Drag’n’Drop start time.

Returns:

  • (Wx::DateTime)

Requires:

  • USE_DATETIME


435
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 435

def get_drag_start_time; end

#get_draggingBoolean Also known as: dragging

Returns true if we are extending a selection.

Returns:

  • (Boolean)


401
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 401

def get_dragging; end

#get_filenameString Also known as: filename

Gets the current filename associated with the control.

Returns:

  • (String)


312
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 312

def get_filename; end

#get_first_visible_pointWx::Point Also known as: first_visible_point

Returns the first visible point in the window.

Returns:



1848
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1848

def get_first_visible_point; end

#get_first_visible_positionInteger Also known as: first_visible_position

Returns the first visible position in the current view.

Returns:

  • (Integer)


1771
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1771

def get_first_visible_position; end

#get_focus_objectWx::RTC::RichTextParagraphLayoutBox Also known as: focus_object

Returns the Wx::RTC::RichTextObject object that currently has the editing focus.

If there are no composite objects, this will be the top-level buffer.



490
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 490

def get_focus_object; end

#get_font_scaleFloat Also known as: font_scale

Returns the scale factor for displaying fonts, for example for more comfortable editing.

Returns:

  • (Float)


1555
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1555

def get_font_scale; end

#get_full_layout_requiredBoolean Also known as: full_layout_required

Returns:

  • (Boolean)


337
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 337

def get_full_layout_required; end

#get_full_layout_saved_positionInteger Also known as: full_layout_saved_position

Returns:

  • (Integer)


355
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 355

def get_full_layout_saved_position; end

#get_full_layout_timeInteger Also known as: full_layout_time

Returns:

  • (Integer)


346
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 346

def get_full_layout_time; end

#get_handler_flagsInteger Also known as: handler_flags

Returns flags that change the behaviour of loading or saving.

See the documentation for each handler class to see what flags are relevant for each handler.

Returns:

  • (Integer)


578
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 578

def get_handler_flags; end

#get_images_enabledBoolean Also known as: images_enabled

Returns true if images are enabled.

Returns:

  • (Boolean)


1781
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1781

def get_images_enabled; end

#get_insertion_pointInteger Also known as: insertion_point

Returns the current insertion point.

Returns:

  • (Integer)


884
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 884

def get_insertion_point; end

#get_internal_selection_rangeRange Also known as: internal_selection_range

Returns the selection range in character positions.

-2, -2 means no selection -1, -1 means select everything. The range is in internal format, i.e. a single character selection is denoted by (n, n)

Returns:

  • (Range)


1247
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1247

def get_internal_selection_range; end

#get_last_positionWx::TextPos Also known as: last_position

Returns the last position in the buffer.

Returns:

  • (Wx::TextPos)


889
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 889

def get_last_position; end

#get_line_length(lineNo) ⇒ Integer Also known as: line_length

Returns the length of the specified line in characters.

Parameters:

  • lineNo (Integer)

Returns:

  • (Integer)


265
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 265

def get_line_length(lineNo) end

#get_line_text(lineNo) ⇒ String Also known as: line_text

Returns the text for the given line.

Parameters:

  • lineNo (Integer)

Returns:

  • (String)


271
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 271

def get_line_text(lineNo) end

#get_logical_point(ptPhysical) ⇒ Wx::Point Also known as: logical_point

Transforms physical window position to logical (unscrolled) position.

Parameters:

  • ptPhysical (Array(Integer, Integer), Wx::Point)

Returns:



1753
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1753

def get_logical_point(ptPhysical) end

#get_number_of_linesInteger Also known as: number_of_lines

Returns the number of lines in the buffer.

Returns:

  • (Integer)


276
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 276

def get_number_of_lines; end

#get_physical_point(ptLogical) ⇒ Wx::Point Also known as: physical_point

Transforms logical (unscrolled) position to physical window position.

Parameters:

  • ptLogical (Array(Integer, Integer), Wx::Point)

Returns:



1747
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1747

def get_physical_point(ptLogical) end

#get_pre_dragBoolean Also known as: pre_drag

Are we trying to start Drag’n’Drop?

Returns:

  • (Boolean)


412
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 412

def get_pre_drag; end

#get_properties_menu_label(obj) ⇒ String Also known as: properties_menu_label

Gets the object’s properties menu label.

Parameters:

Returns:

  • (String)


1522
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1522

def get_properties_menu_label(obj) end

#get_range(from, to) ⇒ String Also known as: range

Gets the text for the given range.

The end point of range is specified as the last character position of the span of text, plus one.

Parameters:

  • from (Integer)
  • to (Integer)

Returns:

  • (String)


259
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 259

def get_range(from, to) end

#get_scaleFloat Also known as: scale

Returns an overall scale factor for displaying and editing the content.

Returns:

  • (Float)


1581
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1581

def get_scale; end

#get_scaled_point(pt) ⇒ Wx::Point Also known as: scaled_point

Returns a scaled point.

Parameters:

Returns:



1593
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1593

def get_scaled_point(pt) end

#get_scaled_rect(rect) ⇒ Wx::Rect Also known as: scaled_rect

Returns a scaled rectangle.

Parameters:

Returns:



1617
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1617

def get_scaled_rect(rect) end

#get_scaled_size(sz) ⇒ Wx::Size Also known as: scaled_size

Returns a scaled size.

Parameters:

  • sz (Array(Integer, Integer), Wx::Size)

Returns:



1605
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1605

def get_scaled_size(sz) end

#get_selectionWx::RTC::RichTextSelection Also known as: selection



302
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 302

def get_selection; end

#get_selection_anchorInteger Also known as: selection_anchor

Returns an anchor so we know how to extend the selection.

It’s a caret position since it’s between two characters.

Returns:

  • (Integer)


460
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 460

def get_selection_anchor; end

#get_selection_anchor_objectWx::RTC::RichTextObject Also known as: selection_anchor_object

Returns the anchor object if selecting multiple containers.



473
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 473

def get_selection_anchor_object; end

#get_selection_rangeRange Also known as: selection_range

Returns the selection range in character positions.

-1, -1 means no selection. The range is in API convention, i.e. a single character selection is denoted by (n, n+1)

Returns:

  • (Range)


1231
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1231

def get_selection_range; end

#get_string_selectionString Also known as: string_selection

Returns the text within the current selection range, if any.

Returns:

  • (String)


307
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 307

def get_string_selection; end

#get_style(position, style) ⇒ Boolean #get_style(position, style) ⇒ Boolean #get_style(position, style, container) ⇒ Boolean Also known as: style

Overloads:

  • #get_style(position, style) ⇒ Boolean

    Gets the attributes at the given position.

    This function gets the combined style - that is, the style you see on the screen as a result of combining base style, paragraph style and character style attributes. To get the character or paragraph style alone, use #get_uncombined_style.

    Parameters:

    Returns:

    • (Boolean)
  • #get_style(position, style) ⇒ Boolean

    Parameters:

    Returns:

    • (Boolean)
  • #get_style(position, style, container) ⇒ Boolean

    Parameters:

    Returns:

    • (Boolean)


629
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 629

def get_style(*args) end

#get_style_for_range(range, style) ⇒ Boolean #get_style_for_range(range, style, container) ⇒ Boolean Also known as: style_for_range

Overloads:



652
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 652

def get_style_for_range(*args) end

#get_style_sheetWx::RTC::RichTextStyleSheet Also known as: style_sheet

Returns the style sheet associated with the control, if any.

A style sheet allows named character and paragraph styles to be applied.



1474
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1474

def get_style_sheet; end

#get_text_cursorWx::Cursor Also known as: text_cursor

Returns the text (normal) cursor.

Returns:



374
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 374

def get_text_cursor; end

#get_uncombined_style(position, style) ⇒ Boolean #get_uncombined_style(position, style, container) ⇒ Boolean Also known as: uncombined_style

Overloads:

  • #get_uncombined_style(position, style) ⇒ Boolean

    Gets the attributes at the given position.

    This function gets the uncombined style - that is, the attributes associated with the paragraph or character content, and not necessarily the combined attributes you see on the screen. To get the combined attributes, use #get_style. If you specify (any) paragraph attribute in style’s flags, this function will fetch the paragraph attributes. Otherwise, it will return the character attributes.

    Parameters:

    Returns:

    • (Boolean)
  • #get_uncombined_style(position, style, container) ⇒ Boolean

    Parameters:

    Returns:

    • (Boolean)


686
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 686

def get_uncombined_style(*args) end

#get_unscaled_point(pt) ⇒ Wx::Point Also known as: unscaled_point

Returns an unscaled point.

Parameters:

Returns:



1587
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1587

def get_unscaled_point(pt) end

#get_unscaled_rect(rect) ⇒ Wx::Rect Also known as: unscaled_rect

Returns an unscaled rectangle.

Parameters:

Returns:



1611
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1611

def get_unscaled_rect(rect) end

#get_unscaled_size(sz) ⇒ Wx::Size Also known as: unscaled_size

Returns an unscaled size.

Parameters:

  • sz (Array(Integer, Integer), Wx::Size)

Returns:



1599
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1599

def get_unscaled_size(sz) end

#get_url_cursorWx::Cursor Also known as: url_cursor

Returns the cursor to be used over URLs.

Returns:



385
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 385

def get_url_cursor; end

#get_valueString Also known as: value

Returns the content of the entire control as a string.

Returns:

  • (String)


1853
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1853

def get_value; end

#get_virtual_attributes_enabledBoolean Also known as: virtual_attributes_enabled

Returns true if this control can use virtual attributes and virtual text.

The default is false.

Returns:

  • (Boolean)


1624
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1624

def get_virtual_attributes_enabled; end

#get_visible_line_for_caret_position(caretPosition) ⇒ Wx::RTC::RichTextLine Also known as: visible_line_for_caret_position

Internal helper function returning the line for the visible caret position.

If the caret is shown at the very end of the line, it means the next character is actually on the following line. So this function gets the line we’re expecting to find if this is the case.

Parameters:

  • caretPosition (Integer)

Returns:



1730
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1730

def get_visible_line_for_caret_position(caretPosition) end

#has_character_attributes(range, style) ⇒ Boolean Also known as: has_character_attributes?

Test if this whole range has character attributes of the specified kind.

If any of the attributes are different within the range, the test fails. You can use this to implement, for example, bold button updating. style must have flags indicating which attributes are of interest.

Parameters:

Returns:

  • (Boolean)


1391
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1391

def has_character_attributes(range, style) end

#has_paragraph_attributes(range, style) ⇒ Boolean Also known as: has_paragraph_attributes?

Test if this whole range has paragraph attributes of the specified kind.

If any of the attributes are different within the range, the test fails. You can use this to implement, for example, centering button updating. style must have flags indicating which attributes are of interest.

Parameters:

Returns:

  • (Boolean)


1400
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1400

def has_paragraph_attributes(range, style) end

#has_selectionBoolean Also known as: has_selection?

Returns true if there is a selection and the object containing the selection was the same as the current focus object.

Returns:

  • (Boolean)


918
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 918

def has_selection; end

#has_unfocused_selectionBoolean Also known as: has_unfocused_selection?

Returns true if there was a selection, whether or not the current focus object is the same as the selection’s container object.

Returns:

  • (Boolean)


923
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 923

def has_unfocused_selection; end

#hit_test(pt) ⇒ Array(Wx::TextCtrlHitTestResult,Integer,Integer)

Parameters:

Returns:



812
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 812

def hit_test(pt) end

#initvoid

This method returns an undefined value.

Initialises the members of the control.



251
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 251

def init; end

#invalidatevoid

This method returns an undefined value.

Invalidates the whole buffer to trigger painting later.



507
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 507

def invalidate; end

#is_default_style_showingBoolean Also known as: default_style_showing?

Returns true if the user has recently set the default style without moving the caret, and therefore the UI needs to reflect the default style and not the style at the caret.

Below is an example of code that uses this function to determine whether the UI should show that the current style is bold.

Returns:

  • (Boolean)

See Also:



1834
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1834

def is_default_style_showing; end

#is_editableBoolean Also known as: editable?

Returns true if the control is editable.

Returns:

  • (Boolean)


286
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 286

def is_editable; end

#is_modifiedBoolean Also known as: modified?

Returns true if the buffer has been modified.

Returns:

  • (Boolean)


281
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 281

def is_modified; end

#is_multi_lineBoolean Also known as: multi_line?

Returns true if the control is multiline.

Returns:

  • (Boolean)


298
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 298

def is_multi_line; end

#is_position_visible(pos) ⇒ Boolean Also known as: position_visible?

Returns true if the given position is visible on the screen.

Parameters:

  • pos (Integer)

Returns:

  • (Boolean)


1766
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1766

def is_position_visible(pos) end

#is_selection_aligned(alignment) ⇒ Boolean Also known as: selection_aligned?

Returns true if all of the selection is aligned according to the specified flag.

Parameters:

Returns:

  • (Boolean)


1426
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1426

def is_selection_aligned(alignment) end

#is_selection_boldBoolean Also known as: selection_bold?

Returns true if all of the selection, or the content at the caret position, is bold.

Returns:

  • (Boolean)


1405
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1405

def is_selection_bold; end

#is_selection_italicsBoolean Also known as: selection_italics?

Returns true if all of the selection, or the content at the caret position, is italic.

Returns:

  • (Boolean)


1410
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1410

def is_selection_italics; end

#is_selection_underlinedBoolean Also known as: selection_underlined?

Returns true if all of the selection, or the content at the caret position, is underlined.

Returns:

  • (Boolean)


1415
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1415

def is_selection_underlined; end

#is_single_lineBoolean Also known as: single_line?

Returns true if the control is single-line.

Currently Wx::RTC::RichTextCtrl does not support single-line editing.

Returns:

  • (Boolean)


293
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 293

def is_single_line; end

#line_breakBoolean

Inserts a line break at the current insertion point.

A line break forces wrapping within a paragraph, and can be introduced by using this function, by appending the Char value Wx::RICH_TEXT_LINE_BREAK_CHAR to text content, or by typing Shift-Return.

Returns:

  • (Boolean)


992
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 992

def line_break; end

#load_file(file, type = Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) ⇒ Boolean

Loads content into the control’s buffer using the given type.

If the specified type is Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY, the type is deduced from the filename extension. This function looks for a suitable Wx::RTC::RichTextFileHandler object.

Parameters:

  • file (String)
  • type (Integer) (defaults to: Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)

Returns:

  • (Boolean)


535
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 535

def load_file(file, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end

#mark_dirtyvoid

This method returns an undefined value.

Marks the buffer as modified.



583
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 583

def mark_dirty; end

#move_caret(pos, showAtLineStart = false, container = nil) ⇒ Boolean

Move the caret to the given character position.

Please note that this does not update the current editing style from the new position; to do that, call #set_insertion_point instead.

Parameters:

Returns:

  • (Boolean)


1275
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1275

def move_caret(pos, showAtLineStart=false, container=nil) end

#move_caret_back(oldPosition) ⇒ void

This method returns an undefined value.

Move the caret one visual step forward: this may mean setting a flag and keeping the same position if we’re going from the end of one line to the start of the next, which may be the exact same caret position.

Parameters:

  • oldPosition (Integer)


1713
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1713

def move_caret_back(oldPosition) end

#move_caret_forward(oldPosition) ⇒ void

This method returns an undefined value.

Move the caret one visual step forward: this may mean setting a flag and keeping the same position if we’re going from the end of one line to the start of the next, which may be the exact same caret position.

Parameters:

  • oldPosition (Integer)


1708
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1708

def move_caret_forward(oldPosition) end

#move_down(noLines = 1, flags = 0) ⇒ Boolean

Moves the caret down.

Parameters:

  • noLines (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1299
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1299

def move_down(noLines=1, flags=0) end

#move_end(flags = 0) ⇒ Boolean

Moves to the end of the buffer.

Parameters:

  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1329
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1329

def move_end(flags=0) end

#move_home(flags = 0) ⇒ Boolean

Moves to the start of the buffer.

Parameters:

  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1324
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1324

def move_home(flags=0) end

#move_left(noPositions = 1, flags = 0) ⇒ Boolean

Moves left.

Parameters:

  • noPositions (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1287
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1287

def move_left(noPositions=1, flags=0) end

#move_right(noPositions = 1, flags = 0) ⇒ Boolean

Moves right.

Parameters:

  • noPositions (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1281
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1281

def move_right(noPositions=1, flags=0) end

#move_to_line_end(flags = 0) ⇒ Boolean

Moves to the end of the line.

Parameters:

  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1304
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1304

def move_to_line_end(flags=0) end

#move_to_line_start(flags = 0) ⇒ Boolean

Moves to the start of the line.

Parameters:

  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1309
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1309

def move_to_line_start(flags=0) end

#move_to_paragraph_end(flags = 0) ⇒ Boolean

Moves to the end of the paragraph.

Parameters:

  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1314
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1314

def move_to_paragraph_end(flags=0) end

#move_to_paragraph_start(flags = 0) ⇒ Boolean

Moves to the start of the paragraph.

Parameters:

  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1319
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1319

def move_to_paragraph_start(flags=0) end

#move_up(noLines = 1, flags = 0) ⇒ Boolean

Moves to the start of the paragraph.

Parameters:

  • noLines (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1293
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1293

def move_up(noLines=1, flags=0) end

#newlineBoolean

Inserts a new paragraph at the current insertion point.

Returns:

  • (Boolean)

See Also:



986
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 986

def newline; end

#number_list(range, def_ = nil, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom = 1, specifiedLevel = -1) ⇒ Boolean #number_list(range, defName, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom = 1, specifiedLevel = -1) ⇒ Boolean

Overloads:

  • #number_list(range, def_ = nil, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom = 1, specifiedLevel = -1) ⇒ Boolean

    Numbers the paragraphs in the given range.

    Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed. flags is a bit list of the following:

    Parameters:

    • range (Range)
    • def_ (Wx::RTC::RichTextListStyleDefinition) (defaults to: nil)
    • flags (Integer) (defaults to: Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
    • startFrom (Integer) (defaults to: 1)
    • specifiedLevel (Integer) (defaults to: -1)

    Returns:

    • (Boolean)

    See Also:

  • #number_list(range, defName, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom = 1, specifiedLevel = -1) ⇒ Boolean

    Parameters:

    • range (Range)
    • defName (String)
    • flags (Integer) (defaults to: Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
    • startFrom (Integer) (defaults to: 1)
    • specifiedLevel (Integer) (defaults to: -1)

    Returns:

    • (Boolean)


751
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 751

def number_list(*args) end

#on_timer(event) ⇒ void

This method returns an undefined value.

Respond to timer events.

Parameters:



1915
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1915

def on_timer(event) end

#page_down(noPages = 1, flags = 0) ⇒ Boolean

Moves one or more pages down.

Parameters:

  • noPages (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1341
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1341

def page_down(noPages=1, flags=0) end

#page_up(noPages = 1, flags = 0) ⇒ Boolean

Moves one or more pages up.

Parameters:

  • noPages (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1335
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1335

def page_up(noPages=1, flags=0) end

#pastevoid

This method returns an undefined value.

Pastes content from the clipboard to the buffer.



826
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 826

def paste; end

#pop_style_sheetWx::RTC::RichTextStyleSheet

Pops the style sheet from top of stack.



1484
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1484

def pop_style_sheet; end

#position_caret(container = nil) ⇒ void

This method returns an undefined value.

Internal function to position the visible caret according to the current caret position.

Parameters:



1655
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1655

def position_caret(container=nil) end

#prepare_content(container) ⇒ void

This method returns an undefined value.

Prepares the content just before insertion (or after buffer reset).

Called by the same function in Wx::RTC::RichTextBuffer. Currently is only called if undo mode is on.

Parameters:



1530
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1530

def prepare_content(container) end

#prepare_context_menu(menu, pt, addPropertyCommands) ⇒ Integer

Prepares the context menu, optionally adding appropriate property-editing commands.

Returns the number of property commands added.

Parameters:

  • menu (Wx::Menu)
  • pt (Array(Integer, Integer), Wx::Point)
  • addPropertyCommands (Boolean)

Returns:

  • (Integer)


1505
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1505

def prepare_context_menu(menu, pt, addPropertyCommands) end

#process_back_key(event, flags) ⇒ Boolean

Processes the back key.

Parameters:

Returns:

  • (Boolean)


1866
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1866

def process_back_key(event, flags) end

#process_delayed_image_loading(refresh) ⇒ Boolean #process_delayed_image_loading(screenRect, box) ⇒ Array(Boolean,Integer)

Overloads:

  • #process_delayed_image_loading(refresh) ⇒ Boolean

    Do delayed image loading and garbage-collect other images.

    Parameters:

    • refresh (Boolean)

    Returns:

    • (Boolean)
  • #process_delayed_image_loading(screenRect, box) ⇒ Array(Boolean,Integer)

    Parameters:

    Returns:

    • (Array(Boolean,Integer))


1906
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1906

def process_delayed_image_loading(*args) end

#process_mouse_movement(container, obj, position, pos) ⇒ Boolean

Processes mouse movement in order to change the cursor.

Parameters:

Returns:

  • (Boolean)


1896
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1896

def process_mouse_movement(container, obj, position, pos) end

#promote_list(promoteBy, range, def_ = nil, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel = -1) ⇒ Boolean #promote_list(promoteBy, range, defName, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel = -1) ⇒ Boolean

Overloads:

  • #promote_list(promoteBy, range, def_ = nil, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel = -1) ⇒ Boolean

    Promotes or demotes the paragraphs in the given range.

    A positive promoteBy produces a smaller indent, and a negative number produces a larger indent. Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed. flags is a bit list of the following:

    Parameters:

    • promoteBy (Integer)
    • range (Range)
    • def_ (Wx::RTC::RichTextListStyleDefinition) (defaults to: nil)
    • flags (Integer) (defaults to: Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
    • specifiedLevel (Integer) (defaults to: -1)

    Returns:

    • (Boolean)

    See Also:

  • #promote_list(promoteBy, range, defName, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel = -1) ⇒ Boolean

    Parameters:

    • promoteBy (Integer)
    • range (Range)
    • defName (String)
    • flags (Integer) (defaults to: Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
    • specifiedLevel (Integer) (defaults to: -1)

    Returns:

    • (Boolean)


780
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 780

def promote_list(*args) end

#push_style_sheet(styleSheet) ⇒ Boolean

Push the style sheet to top of stack.

Parameters:

Returns:

  • (Boolean)


1480
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1480

def push_style_sheet(styleSheet) end

#redo_void

This method returns an undefined value.

Redoes the current command.



860
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 860

def redo_; end

#refresh_for_selection_change(oldSelection, newSelection) ⇒ Boolean

Refreshes the area affected by a selection change.

Parameters:

Returns:

  • (Boolean)


1683
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1683

def refresh_for_selection_change(oldSelection, newSelection) end

#remove(from, to) ⇒ void

This method returns an undefined value.

Removes the content in the specified range.

Parameters:

  • from (Integer)
  • to (Integer)


526
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 526

def remove(from, to) end

#replace(from, to, value) ⇒ void

This method returns an undefined value.

Replaces the content in the specified range with the string specified by value.

Parameters:

  • from (Integer)
  • to (Integer)
  • value (String)


520
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 520

def replace(from, to, value) end

#request_delayed_image_processingvoid

This method returns an undefined value.

Request delayed image processing.



1910
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1910

def request_delayed_image_processing; end

#save_file(file = (''), type = Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) ⇒ Boolean

Saves the buffer content using the given type.

If the specified type is Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY, the type is deduced from the filename extension. This function looks for a suitable Wx::RTC::RichTextFileHandler object.

Parameters:

  • file (String) (defaults to: (''))
  • type (Integer) (defaults to: Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)

Returns:

  • (Boolean)


554
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 554

def save_file(file=(''), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end

#select_allvoid

This method returns an undefined value.

Selects all the text in the buffer.



908
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 908

def select_all; end

#select_nonevoid

This method returns an undefined value.

Cancels any selection.



1219
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1219

def select_none; end

#select_word(position) ⇒ Boolean

Selects the word at the given character position.

Parameters:

  • position (Integer)

Returns:

  • (Boolean)


1224
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1224

def select_word(position) end

#set_and_show_default_style(attr) ⇒ void Also known as: and_show_default_style=

This method returns an undefined value.

Sets attr as the default style and tells the control that the UI should reflect this attribute until the user moves the caret.

Parameters:

See Also:



1843
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1843

def set_and_show_default_style(attr) end

#set_basic_style(style) ⇒ void Also known as: basic_style=

This method returns an undefined value.

Sets the basic (overall) style.

This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).

Parameters:



999
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 999

def set_basic_style(style) end

#set_caret_at_line_start(atStart) ⇒ void Also known as: caret_at_line_start=

This method returns an undefined value.

Sets a flag to remember that we are showing the caret position at the start of a line instead of at the end of the previous one.

Parameters:

  • atStart (Boolean)


396
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 396

def set_caret_at_line_start(atStart) end

#set_caret_position(position, showAtLineStart = false) ⇒ void Also known as: caret_position=

This method returns an undefined value.

Sets the caret position.

The caret position is the character position just before the caret. A value of -1 means the caret is at the start of the buffer. Please note that this does not update the current editing style from the new position or cause the actual caret to be refreshed; to do that, call #set_insertion_point instead.

Parameters:

  • position (Integer)
  • showAtLineStart (Boolean) (defaults to: false)


1691
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1691

def set_caret_position(position, showAtLineStart=false) end

#set_caret_position_after_click(container, position, hitTestFlags, extendSelection = false) ⇒ Boolean

Sets up the caret for the given position and container, after a mouse click.

Parameters:

Returns:

  • (Boolean)


1879
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1879

def set_caret_position_after_click(container, position, hitTestFlags, extendSelection=false) end

#set_caret_position_for_default_style(pos) ⇒ void Also known as: caret_position_for_default_style=

This method returns an undefined value.

Set the caret position for the default style that the user is selecting.

Parameters:

  • pos (Integer)


1826
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1826

def set_caret_position_for_default_style(pos) end

#set_context_menu(menu) ⇒ void Also known as: context_menu=

This method returns an undefined value.

Sets the current context menu.

Parameters:



453
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 453

def set_context_menu(menu) end

#set_default_style(style) ⇒ Boolean #set_default_style(style) ⇒ Boolean Also known as: default_style=

Overloads:

  • #set_default_style(style) ⇒ Boolean

    Sets the current default style, which can be used to change how subsequently inserted text is displayed.

    Parameters:

    Returns:

    • (Boolean)
  • #set_default_style(style) ⇒ Boolean

    Parameters:

    Returns:

    • (Boolean)


696
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 696

def set_default_style(*args) end

#set_default_style_to_cursor_styleBoolean

Sets the default style to the style under the cursor.

Returns:

  • (Boolean)


1215
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1215

def set_default_style_to_cursor_style; end

#set_delayed_image_processing_required(b) ⇒ void Also known as: delayed_image_processing_required=

This method returns an undefined value.

Sets the flag indicating that delayed image processing is required.

Parameters:

  • b (Boolean)


1802
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1802

def set_delayed_image_processing_required(b) end

#set_delayed_image_processing_time(t) ⇒ void Also known as: delayed_image_processing_time=

This method returns an undefined value.

Sets the last time delayed image processing was performed.

Parameters:

  • t (Integer)


1813
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1813

def set_delayed_image_processing_time(t) end

#set_delayed_layout_threshold(threshold) ⇒ void Also known as: delayed_layout_threshold=

This method returns an undefined value.

Sets the size of the buffer beyond which layout is delayed during resizing.

This optimizes sizing for large buffers. The default is 20000.

Parameters:

  • threshold (Integer)


326
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 326

def set_delayed_layout_threshold(threshold) end

#set_dimension_scale(dimScale, refresh = false) ⇒ void Also known as: dimension_scale=

This method returns an undefined value.

Sets the scale factor for displaying certain dimensions such as indentation and inter-paragraph spacing.

This can be useful when editing in a small control where you still want legible text, but a minimum of wasted white space.

Parameters:

  • dimScale (Float)
  • refresh (Boolean) (defaults to: false)


1564
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1564

def set_dimension_scale(dimScale, refresh=false) end

#set_drag_start_point(sp) ⇒ void Also known as: drag_start_point=

This method returns an undefined value.

Set the possible Drag’n’Drop start point.

Parameters:



429
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 429

def set_drag_start_point(sp) end

#set_drag_start_time(st) ⇒ void Also known as: drag_start_time=

This method returns an undefined value.

Set the possible Drag’n’Drop start time.

Parameters:

  • st (Time, Date, DateTime)

Requires:

  • USE_DATETIME


442
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 442

def set_drag_start_time(st) end

#set_dragging(dragging) ⇒ void Also known as: dragging=

This method returns an undefined value.

Sets a flag to remember if we are extending a selection.

Parameters:

  • dragging (Boolean)


407
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 407

def set_dragging(dragging) end

#set_editable(editable) ⇒ void Also known as: editable=

This method returns an undefined value.

Makes the control editable, or not.

Parameters:

  • editable (Boolean)


913
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 913

def set_editable(editable) end

#set_filename(filename) ⇒ void Also known as: filename=

This method returns an undefined value.

Sets the current filename.

Parameters:

  • filename (String)


318
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 318

def set_filename(filename) end

#set_focus_object(obj, setCaretPosition = true) ⇒ Boolean Also known as: focus_object=

Sets the Wx::RTC::RichTextObject object that currently has the editing focus.

Parameters:

Returns:

  • (Boolean)


502
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 502

def set_focus_object(obj, setCaretPosition=true) end

#set_font(font) ⇒ Boolean Also known as: font=

Sets the font, and also the basic and default attributes (see #set_default_style).

Parameters:

Returns:

  • (Boolean)


1642
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1642

def set_font(font) end

#set_font_scale(fontScale, refresh = false) ⇒ void Also known as: font_scale=

This method returns an undefined value.

Sets the scale factor for displaying fonts, for example for more comfortable editing.

Parameters:

  • fontScale (Float)
  • refresh (Boolean) (defaults to: false)


1550
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1550

def set_font_scale(fontScale, refresh=false) end

#set_full_layout_required(b) ⇒ void Also known as: full_layout_required=

This method returns an undefined value.

Parameters:

  • b (Boolean)


342
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 342

def set_full_layout_required(b) end

#set_full_layout_saved_position(p) ⇒ void Also known as: full_layout_saved_position=

This method returns an undefined value.

Parameters:

  • p (Integer)


360
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 360

def set_full_layout_saved_position(p) end

#set_full_layout_time(t) ⇒ void Also known as: full_layout_time=

This method returns an undefined value.

Parameters:

  • t (Integer)


351
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 351

def set_full_layout_time(t) end

#set_handler_flags(flags) ⇒ void Also known as: handler_flags=

This method returns an undefined value.

Sets flags that change the behaviour of loading or saving.

See the documentation for each handler class to see what flags are relevant for each handler.

Parameters:

  • flags (Integer)


571
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 571

def set_handler_flags(flags) end

#set_insertion_point(pos) ⇒ void Also known as: insertion_point=

This method returns an undefined value.

Sets the insertion point and causes the current editing style to be taken from the new position (unlike #set_caret_position).

Parameters:

  • pos (Integer)


875
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 875

def set_insertion_point(pos) end

#set_insertion_point_endvoid

This method returns an undefined value.

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



880
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 880

def set_insertion_point_end; end

#set_internal_selection_range(range) ⇒ void Also known as: internal_selection_range=

This method returns an undefined value.

Sets the selection range in character positions.

-2, -2 means no selection -1, -1 means select everything. The range is in internal format, i.e. a single character selection is denoted by (n, n)

Parameters:

  • range (Range)


1255
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1255

def set_internal_selection_range(range) end

#set_list_style(range, defName, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom = 1, specifiedLevel = -1)) ⇒ Boolean

Parameters:

  • range (Range)
  • defName (String)
  • flags (Integer) (defaults to: Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
  • startFrom (Integer) (defaults to: 1)
  • specifiedLevel (Integer) (defaults to: -1))

Returns:

  • (Boolean)


710
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 710

def set_list_style(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end

#set_max_length(len) ⇒ void Also known as: max_length=

This method returns an undefined value.

Sets the maximum number of characters that may be entered in a single line text control.

For compatibility only; currently does nothing.

Parameters:

  • len (Integer)


599
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 599

def set_max_length(len) end

#set_modified(modified) ⇒ void Also known as: modified=

This method returns an undefined value.

Parameters:

  • modified (Boolean)


591
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 591

def set_modified(modified) end

#set_pre_drag(pd) ⇒ void Also known as: pre_drag=

This method returns an undefined value.

Set if we’re trying to start Drag’n’Drop.

Parameters:

  • pd (Boolean)


418
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 418

def set_pre_drag(pd) end

#set_properties(range, properties, flags = Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) ⇒ Boolean

Sets the properties for the given range, passing flags to determine how the attributes are set.

You can merge properties or replace them. The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the properties for a character at position 5, use the range (5,6). flags may contain a bit list of the following values:

Parameters:

Returns:

  • (Boolean)


798
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 798

def set_properties(range, properties, flags=Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) end

#set_scale(scale, refresh = false) ⇒ void Also known as: scale=

This method returns an undefined value.

Sets an overall scale factor for displaying and editing the content.

Parameters:

  • scale (Float)
  • refresh (Boolean) (defaults to: false)


1576
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1576

def set_scale(scale, refresh=false) end

#set_selection(from, to) ⇒ void #set_selection(sel) ⇒ void Also known as: selection=

Overloads:

  • #set_selection(from, to) ⇒ void

    This method returns an undefined value.

    Sets the selection to the given range.

    The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the selection for a character at position 5, use the range (5,6).

    Parameters:

    • from (Integer)
    • to (Integer)
  • #set_selection(sel) ⇒ void

    This method returns an undefined value.

    Parameters:



903
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 903

def set_selection(*args) end

#set_selection_anchor(anchor) ⇒ void Also known as: selection_anchor=

This method returns an undefined value.

Sets an anchor so we know how to extend the selection.

It’s a caret position since it’s between two characters.

Parameters:

  • anchor (Integer)


468
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 468

def set_selection_anchor(anchor) end

#set_selection_anchor_object(anchor) ⇒ void Also known as: selection_anchor_object=

This method returns an undefined value.

Sets the anchor object if selecting multiple containers.

Parameters:



479
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 479

def set_selection_anchor_object(anchor) end

#set_selection_range(range) ⇒ void Also known as: selection_range=

This method returns an undefined value.

Sets the selection to the given range.

The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the selection for a character at position 5, use the range (5,6).

Parameters:

  • range (Range)


1240
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1240

def set_selection_range(range) end

#set_style(start, end_, style) ⇒ Boolean #set_style(range, style) ⇒ Boolean

Overloads:

  • #set_style(start, end_, style) ⇒ Boolean

    Parameters:

    Returns:

    • (Boolean)
  • #set_style(range, style) ⇒ Boolean

    Parameters:

    Returns:

    • (Boolean)


641
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 641

def set_style(*args) end

#set_style_ex(range, style, flags = Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) ⇒ Boolean

Sets the attributes for the given range, passing flags to determine how the attributes are set.

The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the style for a character at position 5, use the range (5,6). flags may contain a bit list of the following values:

Parameters:

  • range (Range)
  • style (Wx::RTC::RichTextAttr)
  • flags (Integer) (defaults to: Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)

Returns:

  • (Boolean)


671
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 671

def set_style_ex(range, style, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end

#set_style_sheet(styleSheet) ⇒ void Also known as: style_sheet=

This method returns an undefined value.

Sets the style sheet associated with the control.

A style sheet allows named character and paragraph styles to be applied.

Parameters:



1467
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1467

def set_style_sheet(styleSheet) end

#set_text_cursor(cursor) ⇒ void Also known as: text_cursor=

This method returns an undefined value.

Sets the text (normal) cursor.

Parameters:



369
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 369

def set_text_cursor(cursor) end

#set_url_cursor(cursor) ⇒ void Also known as: url_cursor=

This method returns an undefined value.

Sets the cursor to be used over URLs.

Parameters:



380
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 380

def set_url_cursor(cursor) end

#set_value(value) ⇒ void Also known as: value=

This method returns an undefined value.

Replaces existing content with the given text.

Parameters:

  • value (String)


1859
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1859

def set_value(value) end

#should_inherit_coloursBoolean

Return true from here to allow the colours of this window to be changed by Window#inherit_attributes.

Returning false forbids inheriting them from the parent window. The base class version returns false, but this method is overridden in Control where it returns true.

Returns:

  • (Boolean)


1650
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1650

def should_inherit_colours; end

#show_context_menu(menu, pt, addPropertyCommands) ⇒ Boolean

Shows the given context menu, optionally adding appropriate property-editing commands for the current position in the object hierarchy.

Parameters:

  • menu (Wx::Menu)
  • pt (Array(Integer, Integer), Wx::Point)
  • addPropertyCommands (Boolean)

Returns:

  • (Boolean)


1496
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1496

def show_context_menu(menu, pt, addPropertyCommands) end

#show_position(pos) ⇒ void

This method returns an undefined value.

Scrolls the buffer so that the given position is in view.

Parameters:

  • pos (Integer)


808
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 808

def show_position(pos) end

#start_cell_selection(table, newCell) ⇒ Boolean

Starts selecting table cells.

Parameters:

Returns:

  • (Boolean)


1677
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1677

def start_cell_selection(table, newCell) end

#store_focus_object(obj) ⇒ void

This method returns an undefined value.

Setter for m_focusObject.



496
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 496

def store_focus_object(obj) end

#suppressing_undoBoolean

Returns true if undo history suppression is on.

Returns:

  • (Boolean)


1382
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1382

def suppressing_undo; end

#undovoid

This method returns an undefined value.

Undoes the command at the top of the command history, if there is one.



856
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 856

def undo; end

#word_left(noPages = 1, flags = 0) ⇒ Boolean

Moves a number of words to the left.

Parameters:

  • noPages (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1347
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1347

def word_left(noPages=1, flags=0) end

#word_right(noPages = 1, flags = 0) ⇒ Boolean

Move a number of words to the right.

Parameters:

  • noPages (Integer) (defaults to: 1)
  • flags (Integer) (defaults to: 0)

Returns:

  • (Boolean)


1353
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 1353

def word_right(noPages=1, flags=0) end

#write_field(fieldType, properties, textAttr = (Wx::RichTextAttr.new())) ⇒ Wx::RTC::RichTextField

Writes a field at the current insertion point.

Parameters:

  • fieldType (String)

    The field type, matching an existing field type definition.

  • properties (Wx::RTC::RichTextProperties)

    Extra data for the field.

  • textAttr (Wx::RTC::RichTextAttr) (defaults to: (Wx::RichTextAttr.new()))

    Optional attributes.

Returns:

See Also:



969
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 969

def write_field(fieldType, properties, textAttr=(Wx::RichTextAttr.new())) end

#write_image(image, bitmapType = Wx::BitmapType::BITMAP_TYPE_PNG, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean #write_image(bitmap, bitmapType = Wx::BitmapType::BITMAP_TYPE_PNG, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean #write_image(filename, bitmapType, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean #write_image(imageBlock, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean

Overloads:

  • #write_image(image, bitmapType = Wx::BitmapType::BITMAP_TYPE_PNG, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean

    Write a bitmap or image at the current insertion point.

    Supply an optional type to use for internal and file storage of the raw data.

    Parameters:

    Returns:

    • (Boolean)
  • #write_image(bitmap, bitmapType = Wx::BitmapType::BITMAP_TYPE_PNG, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean

    Parameters:

    Returns:

    • (Boolean)
  • #write_image(filename, bitmapType, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean

    Loads an image from a file and writes it at the current insertion point.

    Parameters:

    Returns:

    • (Boolean)
  • #write_image(imageBlock, textAttr = (Wx::RichTextAttr.new())) ⇒ Boolean

    Writes an image block at the current insertion point.

    Parameters:

    Returns:

    • (Boolean)


950
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 950

def write_image(*args) end

#write_table(rows, cols, tableAttr = (Wx::RichTextAttr.new()), cellAttr = (Wx::RichTextAttr.new())) ⇒ Wx::RTC::RichTextTable

Write a table at the current insertion point, returning the table.

You can then call #set_focus_object to set the focus to the new object.

Parameters:

Returns:



979
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 979

def write_table(rows, cols, tableAttr=(Wx::RichTextAttr.new()), cellAttr=(Wx::RichTextAttr.new())) end

#write_text(text) ⇒ void

This method returns an undefined value.

Writes text at the current position.

Parameters:

  • text (String)


605
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 605

def write_text(text) end

#write_text_box(textAttr = (Wx::RichTextAttr.new())) ⇒ Wx::RTC::RichTextBox

Write a text box at the current insertion point, returning the text box.

You can then call #set_focus_object to set the focus to the new object.

Parameters:

Returns:



957
# File 'lib/wx/doc/gen/rtc/rich_text_ctrl.rb', line 957

def write_text_box(textAttr=(Wx::RichTextAttr.new())) end