wxruby3 0.9.2-x64-mingw-ucrt → 0.9.4-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +35 -29
- data/README.md +24 -15
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/core/bitmap_combobox.rb +17 -21
- data/lib/wx/core/book_ctrl_base.rb +16 -0
- data/lib/wx/core/combobox.rb +13 -3
- data/lib/wx/core/config.rb +454 -83
- data/lib/wx/core/controlwithitems.rb +40 -130
- data/lib/wx/core/enum.rb +17 -1
- data/lib/wx/core/event.rb +6 -1
- data/lib/wx/core/events/evt_list.rb +5 -4
- data/lib/wx/core/evthandler.rb +8 -2
- data/lib/wx/core/generic_validator.rb +312 -0
- data/lib/wx/core/listbox.rb +2 -2
- data/lib/wx/core/log.rb +1 -1
- data/lib/wx/core/notebook.rb +10 -8
- data/lib/wx/core/owner_drawn_combobox.rb +45 -0
- data/lib/wx/core/peristent_object.rb +15 -0
- data/lib/wx/core/persistence_manager.rb +39 -0
- data/lib/wx/core/persistent_window.rb +16 -0
- data/lib/wx/core/size.rb +4 -0
- data/lib/wx/core/sizer.rb +1 -2
- data/lib/wx/core/standard_paths.rb +22 -0
- data/lib/wx/core/text_entry.rb +4 -1
- data/lib/wx/core/top_level_window.rb +16 -0
- data/lib/wx/core/treebook.rb +18 -0
- data/lib/wx/core/validator.rb +70 -5
- data/lib/wx/core/window.rb +3 -7
- data/lib/wx/core.rb +4 -0
- data/lib/wx/doc/art_locator.rb +1 -0
- data/lib/wx/doc/book_ctrl_base.rb +19 -0
- data/lib/wx/doc/comboctrl.rb +18 -0
- data/lib/wx/doc/config.rb +101 -41
- data/lib/wx/doc/controlwithitems.rb +16 -0
- data/lib/wx/doc/date_picker_ctrl.rb +23 -0
- data/lib/wx/doc/editable_listbox.rb +44 -0
- data/lib/wx/doc/enum.rb +15 -0
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/extra/12_client_data.md +89 -0
- data/lib/wx/doc/extra/13_validators.md +139 -0
- data/lib/wx/doc/extra/14_config.md +101 -0
- data/lib/wx/doc/extra/15_persistence.md +148 -0
- data/lib/wx/doc/gdi_common.rb +4 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +25 -0
- data/lib/wx/doc/gen/accelerator.rb +7 -1
- data/lib/wx/doc/gen/accessible.rb +13 -0
- data/lib/wx/doc/gen/activity_indicator.rb +7 -0
- data/lib/wx/doc/gen/animation.rb +12 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +10 -0
- data/lib/wx/doc/gen/any_button.rb +17 -1
- data/lib/wx/doc/gen/app.rb +35 -1
- data/lib/wx/doc/gen/app_traits.rb +38 -5
- data/lib/wx/doc/gen/art_provider.rb +14 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +24 -1
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +9 -1
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -1
- data/lib/wx/doc/gen/aui/aui_notebook.rb +20 -2
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +30 -1
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +11 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -0
- data/lib/wx/doc/gen/banner_window.rb +7 -0
- data/lib/wx/doc/gen/bitmap.rb +64 -3
- data/lib/wx/doc/gen/bitmap_button.rb +6 -1
- data/lib/wx/doc/gen/bitmap_combo_box.rb +9 -3
- data/lib/wx/doc/gen/book_ctrl_base.rb +17 -2
- data/lib/wx/doc/gen/book_ctrl_event.rb +3 -1
- data/lib/wx/doc/gen/box_sizer.rb +5 -0
- data/lib/wx/doc/gen/brush.rb +16 -1
- data/lib/wx/doc/gen/busy_info.rb +8 -0
- data/lib/wx/doc/gen/button.rb +11 -3
- data/lib/wx/doc/gen/calculate_layout_event.rb +4 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +22 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -0
- data/lib/wx/doc/gen/calendar_event.rb +3 -1
- data/lib/wx/doc/gen/caret.rb +3 -0
- data/lib/wx/doc/gen/check_box.rb +10 -0
- data/lib/wx/doc/gen/check_list_box.rb +3 -0
- data/lib/wx/doc/gen/choice.rb +14 -2
- data/lib/wx/doc/gen/choicebook.rb +1 -0
- data/lib/wx/doc/gen/client_dc.rb +1 -0
- data/lib/wx/doc/gen/clipboard.rb +9 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +3 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +1 -0
- data/lib/wx/doc/gen/colour.rb +20 -0
- data/lib/wx/doc/gen/colour_dialog.rb +10 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +4 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +1 -0
- data/lib/wx/doc/gen/combo_box.rb +20 -1
- data/lib/wx/doc/gen/combo_ctrl.rb +54 -295
- data/lib/wx/doc/gen/command_link_button.rb +8 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -1
- data/lib/wx/doc/gen/control.rb +12 -0
- data/lib/wx/doc/gen/control_with_items.rb +45 -9
- data/lib/wx/doc/gen/core.rb +2 -2
- data/lib/wx/doc/gen/cursor.rb +4 -0
- data/lib/wx/doc/gen/data_format.rb +1 -0
- data/lib/wx/doc/gen/data_object.rb +27 -5
- data/lib/wx/doc/gen/date_event.rb +2 -1
- data/lib/wx/doc/gen/date_picker_ctrl.rb +7 -1
- data/lib/wx/doc/gen/dc.rb +87 -3
- data/lib/wx/doc/gen/dial_up_event.rb +2 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +12 -0
- data/lib/wx/doc/gen/dialog.rb +42 -3
- data/lib/wx/doc/gen/dir_dialog.rb +6 -1
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +5 -0
- data/lib/wx/doc/gen/drag_drop.rb +20 -0
- data/lib/wx/doc/gen/drag_image.rb +7 -0
- data/lib/wx/doc/gen/editable_list_box.rb +5 -3
- data/lib/wx/doc/gen/event.rb +26 -11
- data/lib/wx/doc/gen/event_blocker.rb +2 -1
- data/lib/wx/doc/gen/event_filter.rb +3 -2
- data/lib/wx/doc/gen/event_list.rb +4 -4
- data/lib/wx/doc/gen/events.rb +165 -26
- data/lib/wx/doc/gen/evt_handler.rb +40 -2
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -0
- data/lib/wx/doc/gen/file_ctrl.rb +11 -2
- data/lib/wx/doc/gen/file_ctrl_event.rb +5 -1
- data/lib/wx/doc/gen/file_dialog.rb +13 -0
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +12 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +11 -2
- data/lib/wx/doc/gen/file_dir_picker_event.rb +2 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +4 -0
- data/lib/wx/doc/gen/file_system.rb +17 -1
- data/lib/wx/doc/gen/find_dialog_event.rb +2 -1
- data/lib/wx/doc/gen/find_replace_data.rb +1 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +3 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +13 -0
- data/lib/wx/doc/gen/font.rb +75 -3
- data/lib/wx/doc/gen/font_data.rb +14 -0
- data/lib/wx/doc/gen/font_dialog.rb +6 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +8 -0
- data/lib/wx/doc/gen/font_picker_event.rb +1 -0
- data/lib/wx/doc/gen/frame.rb +24 -7
- data/lib/wx/doc/gen/fs_file.rb +22 -0
- data/lib/wx/doc/gen/gauge.rb +8 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +5 -0
- data/lib/wx/doc/gen/gcdc.rb +2 -0
- data/lib/wx/doc/gen/gdi_common.rb +50 -8
- data/lib/wx/doc/gen/gdi_object.rb +1 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +7 -0
- data/lib/wx/doc/gen/graphics_context.rb +36 -7
- data/lib/wx/doc/gen/graphics_object.rb +24 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +14 -4
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +9 -2
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +6 -2
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +229 -7
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +4 -1
- data/lib/wx/doc/gen/grid/grid_event.rb +4 -1
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_size_event.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_string_table.rb +7 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +27 -1
- data/lib/wx/doc/gen/grid/grid_table_message.rb +1 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +24 -4
- data/lib/wx/doc/gen/grid_sizer.rb +11 -0
- data/lib/wx/doc/gen/gui_event_loop.rb +12 -2
- data/lib/wx/doc/gen/header_ctrl.rb +106 -6
- data/lib/wx/doc/gen/header_ctrl_event.rb +5 -1
- data/lib/wx/doc/gen/help_controller.rb +11 -0
- data/lib/wx/doc/gen/help_provider.rb +12 -3
- data/lib/wx/doc/gen/html/html_cell.rb +25 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -1
- data/lib/wx/doc/gen/html/html_easy_printing.rb +13 -1
- data/lib/wx/doc/gen/html/html_help_controller.rb +18 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +8 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +1 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +49 -9
- data/lib/wx/doc/gen/html/html_printout.rb +7 -0
- data/lib/wx/doc/gen/html/html_window.rb +31 -0
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +2 -1
- data/lib/wx/doc/gen/hyperlink_event.rb +1 -0
- data/lib/wx/doc/gen/icon.rb +19 -1
- data/lib/wx/doc/gen/icon_location.rb +1 -0
- data/lib/wx/doc/gen/image.rb +67 -10
- data/lib/wx/doc/gen/image_list.rb +12 -2
- data/lib/wx/doc/gen/info_bar.rb +12 -0
- data/lib/wx/doc/gen/keyboard_state.rb +11 -0
- data/lib/wx/doc/gen/list_box.rb +20 -3
- data/lib/wx/doc/gen/list_ctrl.rb +89 -0
- data/lib/wx/doc/gen/list_event.rb +11 -1
- data/lib/wx/doc/gen/listbook.rb +1 -0
- data/lib/wx/doc/gen/locale.rb +22 -0
- data/lib/wx/doc/gen/log.rb +42 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +4 -1
- data/lib/wx/doc/gen/mdi_frame.rb +27 -4
- data/lib/wx/doc/gen/media_ctrl.rb +17 -0
- data/lib/wx/doc/gen/media_event.rb +2 -1
- data/lib/wx/doc/gen/memory_dc.rb +10 -0
- data/lib/wx/doc/gen/menu.rb +48 -7
- data/lib/wx/doc/gen/menu_bar.rb +32 -13
- data/lib/wx/doc/gen/menu_item.rb +26 -0
- data/lib/wx/doc/gen/message_dialog.rb +10 -0
- data/lib/wx/doc/gen/mini_frame.rb +5 -2
- data/lib/wx/doc/gen/mirror_dc.rb +1 -0
- data/lib/wx/doc/gen/mouse_state.rb +1 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +3 -1
- data/lib/wx/doc/gen/non_owned_window.rb +3 -0
- data/lib/wx/doc/gen/notebook.rb +11 -1
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +4 -0
- data/lib/wx/doc/gen/object.rb +3 -0
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +340 -0
- data/lib/wx/doc/gen/paint_dc.rb +1 -0
- data/lib/wx/doc/gen/palette.rb +5 -0
- data/lib/wx/doc/gen/panel.rb +10 -2
- data/lib/wx/doc/gen/pen.rb +30 -1
- data/lib/wx/doc/gen/persistence_manager.rb +135 -0
- data/lib/wx/doc/gen/persistent_object.rb +52 -0
- data/lib/wx/doc/gen/persistent_window.rb +116 -0
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +4 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +6 -1
- data/lib/wx/doc/gen/pg/pg_editor.rb +61 -15
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +2 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +198 -81
- data/lib/wx/doc/gen/pg/pg_property.rb +129 -52
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +56 -14
- data/lib/wx/doc/gen/pg/property_grid_event.rb +16 -6
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +98 -37
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +29 -7
- data/lib/wx/doc/gen/pg/property_grid_page.rb +11 -4
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +7 -2
- data/lib/wx/doc/gen/picker_base.rb +11 -1
- data/lib/wx/doc/gen/platform_info.rb +31 -0
- data/lib/wx/doc/gen/popup_window.rb +5 -0
- data/lib/wx/doc/gen/progress_dialog.rb +4 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +7 -1
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +1 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -0
- data/lib/wx/doc/gen/prt/print_data.rb +27 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -0
- data/lib/wx/doc/gen/prt/printer.rb +42 -5
- data/lib/wx/doc/gen/prt/printer_dc.rb +2 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +9 -0
- data/lib/wx/doc/gen/radio_box.rb +19 -0
- data/lib/wx/doc/gen/radio_button.rb +9 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +63 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +23 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +35 -9
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +10 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +17 -7
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +11 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +25 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +4 -0
- data/lib/wx/doc/gen/rearrange_list.rb +9 -0
- data/lib/wx/doc/gen/region.rb +42 -13
- data/lib/wx/doc/gen/region_iterator.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +25 -8
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +41 -4
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +23 -11
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +74 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +6 -1
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +8 -0
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +6 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +4 -0
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +7 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +64 -4
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +51 -4
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +13 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +9 -4
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +3 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +2 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +1 -0
- data/lib/wx/doc/gen/sash_event.rb +5 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +10 -0
- data/lib/wx/doc/gen/sash_window.rb +3 -0
- data/lib/wx/doc/gen/screen_dc.rb +1 -0
- data/lib/wx/doc/gen/scroll_bar.rb +11 -2
- data/lib/wx/doc/gen/scrolled_canvas.rb +20 -4
- data/lib/wx/doc/gen/scrolled_control.rb +20 -4
- data/lib/wx/doc/gen/scrolled_window.rb +20 -4
- data/lib/wx/doc/gen/search_ctrl.rb +6 -0
- data/lib/wx/doc/gen/simplebook.rb +7 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +3 -1
- data/lib/wx/doc/gen/sizer.rb +79 -9
- data/lib/wx/doc/gen/sizer_item.rb +16 -2
- data/lib/wx/doc/gen/slider.rb +23 -0
- data/lib/wx/doc/gen/spin_button.rb +9 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +11 -0
- data/lib/wx/doc/gen/spin_ctrl_double.rb +7 -0
- data/lib/wx/doc/gen/spin_double_event.rb +4 -1
- data/lib/wx/doc/gen/spin_event.rb +2 -1
- data/lib/wx/doc/gen/splash_screen.rb +2 -0
- data/lib/wx/doc/gen/splitter_event.rb +10 -1
- data/lib/wx/doc/gen/splitter_window.rb +38 -14
- data/lib/wx/doc/gen/static_bitmap.rb +99 -2
- data/lib/wx/doc/gen/static_box.rb +6 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +3 -0
- data/lib/wx/doc/gen/static_line.rb +4 -0
- data/lib/wx/doc/gen/static_text.rb +5 -0
- data/lib/wx/doc/gen/status_bar.rb +17 -3
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +174 -6
- data/lib/wx/doc/gen/stc/styled_text_event.rb +27 -1
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +7 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +9 -0
- data/lib/wx/doc/gen/system_options.rb +8 -0
- data/lib/wx/doc/gen/system_settings.rb +7 -0
- data/lib/wx/doc/gen/task_bar_button.rb +12 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +5 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +2 -1
- data/lib/wx/doc/gen/text_attr.rb +27 -0
- data/lib/wx/doc/gen/text_ctrl.rb +27 -3
- data/lib/wx/doc/gen/text_entry.rb +43 -9
- data/lib/wx/doc/gen/text_entry_dialog.rb +12 -0
- data/lib/wx/doc/gen/text_validator.rb +16 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -0
- data/lib/wx/doc/gen/timer.rb +8 -0
- data/lib/wx/doc/gen/timer_event.rb +1 -0
- data/lib/wx/doc/gen/tip_provider.rb +5 -0
- data/lib/wx/doc/gen/toggle_button.rb +68 -0
- data/lib/wx/doc/gen/tool_bar.rb +57 -14
- data/lib/wx/doc/gen/tool_tip.rb +6 -0
- data/lib/wx/doc/gen/toolbook.rb +3 -0
- data/lib/wx/doc/gen/top_level_window.rb +34 -3
- data/lib/wx/doc/gen/tree_ctrl.rb +49 -0
- data/lib/wx/doc/gen/tree_event.rb +7 -1
- data/lib/wx/doc/gen/treebook.rb +9 -0
- data/lib/wx/doc/gen/ui_action_simulator.rb +4 -0
- data/lib/wx/doc/gen/utils.rb +55 -16
- data/lib/wx/doc/gen/v_list_box.rb +21 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +15 -0
- data/lib/wx/doc/gen/validator.rb +9 -13
- data/lib/wx/doc/gen/variant.rb +6 -0
- data/lib/wx/doc/gen/window.rb +260 -52
- data/lib/wx/doc/gen/window_dc.rb +2 -0
- data/lib/wx/doc/gen/window_disabler.rb +1 -0
- data/lib/wx/doc/gen/with_images.rb +7 -1
- data/lib/wx/doc/gen/wizard.rb +18 -0
- data/lib/wx/doc/gen/wizard_event.rb +3 -1
- data/lib/wx/doc/gen/wizard_page.rb +5 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +4 -0
- data/lib/wx/doc/gen/wrap_sizer.rb +5 -0
- data/lib/wx/doc/gen/xml_node.rb +14 -0
- data/lib/wx/doc/gen/xml_resource.rb +22 -0
- data/lib/wx/doc/generic_validator.rb +95 -0
- data/lib/wx/doc/html/simple_html_listbox.rb +22 -0
- data/lib/wx/doc/num_validator.rb +387 -0
- data/lib/wx/doc/owner_drawn_combobox.rb +96 -0
- data/lib/wx/doc/persistence_manager.rb +36 -0
- data/lib/wx/doc/persistent_object.rb +27 -0
- data/lib/wx/doc/pg/numeric_property_validator.rb +33 -0
- data/lib/wx/doc/static_bitmap.rb +25 -0
- data/lib/wx/doc/text_validator.rb +10 -0
- data/lib/wx/doc/top_level_window.rb +19 -0
- data/lib/wx/doc/treebook.rb +6 -1
- data/lib/wx/doc/validator.rb +113 -0
- data/lib/wx/doc/window.rb +30 -0
- data/lib/wx/html/events/evt_list.rb +0 -10
- data/lib/wx/html/simple_html_listbox.rb +24 -91
- data/lib/wx/keyword_defs.rb +34 -2
- data/lib/wx/rbn/ribbon_gallery.rb +0 -21
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/lib/config/mingw.rb +12 -0
- data/samples/aui/aui.rb +1237 -1233
- data/samples/calendar/calendar.rb +293 -289
- data/samples/controls/get_item_sample.rb +83 -79
- data/samples/controls/htlbox.rb +331 -327
- data/samples/dialogs/dialogs.rb +682 -694
- data/samples/dialogs/wizard.rb +52 -55
- data/samples/dragdrop/dragdrop.rb +146 -142
- data/samples/drawing/bitmap.rb +29 -26
- data/samples/drawing/bitmap_image.rb +84 -80
- data/samples/drawing/graphics_drawing.rb +209 -205
- data/samples/drawing/image_prt.rb +344 -340
- data/samples/drawing/maths_images.rb +18 -1
- data/samples/drawing/rmagic_bitmap_image.rb +88 -84
- data/samples/etc/caret.rb +306 -0
- data/samples/etc/miniframe.rb +65 -60
- data/samples/etc/sash.rb +109 -105
- data/samples/etc/scrollwin.rb +86 -80
- data/samples/etc/system_settings.rb +216 -209
- data/samples/event/activation.rb +72 -67
- data/samples/event/event.rb +160 -153
- data/samples/event/threaded.rb +8 -1
- data/samples/event/update_ui_event.rb +67 -60
- data/samples/grid/grid.rb +188 -181
- data/samples/grid/gridtablebase.rb +136 -129
- data/samples/html/html.rb +208 -204
- data/samples/mdi/mdi.rb +59 -54
- data/samples/minimal/minimal.rb +54 -51
- data/samples/minimal/nothing.rb +1 -0
- data/samples/printing/printing.rb +367 -377
- data/samples/printing/printing2.rb +203 -198
- data/samples/propgrid/propgrid.rb +2312 -2308
- data/samples/propgrid/propgrid_minimal.rb +57 -50
- data/samples/ribbon/ribbon.rb +780 -774
- data/samples/sampler/ext.rb +0 -33
- data/samples/sampler/sample.rb +4 -9
- data/samples/sampler.rb +1 -1
- data/samples/splash/splash.rb +118 -116
- data/samples/text/rich_textctrl.rb +207 -201
- data/samples/text/richtext.rb +1409 -1405
- data/samples/text/scintilla.rb +137 -128
- data/samples/text/textctrl.rb +89 -83
- data/samples/text/unicode.rb +175 -168
- data/samples/treectrl/treectrl.rb +1430 -1426
- data/samples/widgets/activityindicator.rb +95 -0
- data/samples/widgets/art/widgets/activityindicator.xpm +278 -0
- data/samples/widgets/art/widgets/bmpbtn.xpm +37 -0
- data/samples/widgets/art/widgets/bmpcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/button.xpm +54 -0
- data/samples/widgets/art/widgets/checkbox.xpm +54 -0
- data/samples/{bigdemo/icons → widgets/art/widgets}/choice.xpm +1 -1
- data/samples/widgets/art/widgets/choicebk.xpm +54 -0
- data/samples/widgets/art/widgets/clrpicker.xpm +193 -0
- data/samples/widgets/art/widgets/combobox.xpm +54 -0
- data/samples/widgets/art/widgets/datepick.xpm +200 -0
- data/samples/widgets/art/widgets/dirctrl.xpm +54 -0
- data/samples/widgets/art/widgets/dirpicker.xpm +213 -0
- data/samples/widgets/art/widgets/filepicker.xpm +214 -0
- data/samples/widgets/art/widgets/fontpicker.xpm +185 -0
- data/samples/widgets/art/widgets/gauge.xpm +54 -0
- data/samples/widgets/art/widgets/header.xpm +54 -0
- data/samples/widgets/art/widgets/hyperlnk.xpm +54 -0
- data/samples/widgets/art/widgets/listbook.xpm +54 -0
- data/samples/widgets/art/widgets/listbox.xpm +54 -0
- data/samples/widgets/art/widgets/native.xpm +81 -0
- data/samples/widgets/art/widgets/notebook.xpm +54 -0
- data/samples/widgets/art/widgets/odcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/radiobox.xpm +54 -0
- data/samples/widgets/art/widgets/scrolbar.xpm +54 -0
- data/samples/widgets/art/widgets/slider.xpm +54 -0
- data/samples/widgets/art/widgets/spinbtn.xpm +40 -0
- data/samples/widgets/art/widgets/statbmp.xpm +40 -0
- data/samples/widgets/art/widgets/statbox.xpm +54 -0
- data/samples/widgets/art/widgets/stattext.xpm +54 -0
- data/samples/widgets/art/widgets/text.xpm +54 -0
- data/samples/widgets/art/widgets/timepick.xpm +207 -0
- data/samples/widgets/art/widgets/toggle.xpm +54 -0
- data/samples/widgets/art/widgets/toucan.png +0 -0
- data/samples/widgets/bmpcombobox.rb +651 -0
- data/samples/widgets/button.rb +462 -0
- data/samples/widgets/checkbox.rb +211 -0
- data/samples/widgets/choice.rb +287 -0
- data/samples/widgets/clrpicker.rb +156 -0
- data/samples/widgets/combobox.rb +516 -0
- data/samples/widgets/datepick.rb +215 -0
- data/samples/widgets/dirctrl.rb +265 -0
- data/samples/widgets/dirpicker.rb +158 -0
- data/samples/widgets/editlbox.rb +122 -0
- data/samples/widgets/filectrl.rb +216 -0
- data/samples/widgets/filepicker.rb +214 -0
- data/samples/widgets/fontpicker.rb +135 -0
- data/samples/widgets/gauge.rb +311 -0
- data/samples/widgets/headerctrl.rb +236 -0
- data/samples/widgets/hyperlink.rb +203 -0
- data/samples/widgets/itemcontainer.rb +185 -0
- data/samples/widgets/listbox.rb +473 -0
- data/samples/widgets/notebook.rb +488 -0
- data/samples/widgets/odcombobox.rb +608 -0
- data/samples/widgets/radiobox.rb +328 -0
- data/samples/widgets/searchctrl.rb +159 -0
- data/samples/widgets/slider.rb +594 -0
- data/samples/widgets/spinbtn.rb +443 -0
- data/samples/widgets/statbmp.rb +130 -0
- data/samples/widgets/static.rb +436 -0
- data/samples/widgets/textctrl.rb +700 -0
- data/samples/widgets/timepick.rb +148 -0
- data/samples/widgets/tn_widgets.png +0 -0
- data/samples/widgets/toggle.rb +385 -0
- data/samples/widgets/widgets.rb +1229 -0
- data/samples/xrc/custom_xrc_sample.rb +47 -41
- data/samples/xrc/xrc_sample.rb +53 -47
- data/tests/test_config.rb +207 -42
- data/tests/test_event_handling.rb +52 -34
- data/tests/test_events.rb +7 -0
- data/tests/test_item_data.rb +24 -0
- data/tests/test_persistence.rb +142 -0
- data/tests/test_sizer.rb +44 -1
- data/tests/test_validators.rb +805 -0
- metadata +103 -137
- data/lib/wx/core/choice.rb +0 -14
- data/lib/wx/core/combo_ctrl.rb +0 -110
- data/samples/bigdemo/About.rbw +0 -39
- data/samples/bigdemo/ColorPanel.rbw +0 -23
- data/samples/bigdemo/GridSimple.rbw +0 -78
- data/samples/bigdemo/MDIDemo.rbw +0 -57
- data/samples/bigdemo/PopupMenu.rbw +0 -146
- data/samples/bigdemo/ShapedWindow.rbw +0 -128
- data/samples/bigdemo/Sizers.rbw +0 -541
- data/samples/bigdemo/bigdemo.rb +0 -817
- data/samples/bigdemo/demoTemplate.rbw +0 -33
- data/samples/bigdemo/helpfile.htb +0 -0
- data/samples/bigdemo/icons/Test 015.jpg +0 -0
- data/samples/bigdemo/icons/Test 015.png +0 -0
- data/samples/bigdemo/icons/choice.bmp +0 -0
- data/samples/bigdemo/icons/combo.bmp +0 -0
- data/samples/bigdemo/icons/combo.xpm +0 -27
- data/samples/bigdemo/icons/copy.xpm +0 -25
- data/samples/bigdemo/icons/cut.xpm +0 -24
- data/samples/bigdemo/icons/gauge.bmp +0 -0
- data/samples/bigdemo/icons/gauge.xpm +0 -27
- data/samples/bigdemo/icons/help.xpm +0 -25
- data/samples/bigdemo/icons/list.bmp +0 -0
- data/samples/bigdemo/icons/list.xpm +0 -27
- data/samples/bigdemo/icons/mondrian.ico +0 -0
- data/samples/bigdemo/icons/mondrian.xpm +0 -44
- data/samples/bigdemo/icons/new.xpm +0 -24
- data/samples/bigdemo/icons/ogl.ico +0 -0
- data/samples/bigdemo/icons/ogl.xpm +0 -45
- data/samples/bigdemo/icons/open.xpm +0 -26
- data/samples/bigdemo/icons/paste.bmp +0 -0
- data/samples/bigdemo/icons/paste.xpm +0 -38
- data/samples/bigdemo/icons/pointy.png +0 -0
- data/samples/bigdemo/icons/preview.xpm +0 -26
- data/samples/bigdemo/icons/print.xpm +0 -26
- data/samples/bigdemo/icons/radio.bmp +0 -0
- data/samples/bigdemo/icons/radio.xpm +0 -27
- data/samples/bigdemo/icons/robert.xpm +0 -415
- data/samples/bigdemo/icons/sashtest.ico +0 -0
- data/samples/bigdemo/icons/save.xpm +0 -25
- data/samples/bigdemo/icons/smiles.bmp +0 -0
- data/samples/bigdemo/icons/smiles.xpm +0 -39
- data/samples/bigdemo/icons/smiley.ico +0 -0
- data/samples/bigdemo/icons/smiley.xpm +0 -42
- data/samples/bigdemo/icons/stattext.xpm +0 -24
- data/samples/bigdemo/icons/test2.bmp +0 -0
- data/samples/bigdemo/icons/test2.png +0 -0
- data/samples/bigdemo/icons/test2.xpm +0 -79
- data/samples/bigdemo/icons/text.bmp +0 -0
- data/samples/bigdemo/icons/text.xpm +0 -27
- data/samples/bigdemo/icons/tog1.bmp +0 -0
- data/samples/bigdemo/icons/tog1.xpm +0 -38
- data/samples/bigdemo/icons/tog2.bmp +0 -0
- data/samples/bigdemo/icons/tog2.xpm +0 -38
- data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
- data/samples/bigdemo/icons/wxwin.ico +0 -0
- data/samples/bigdemo/icons/wxwin16x16.png +0 -0
- data/samples/bigdemo/icons/wxwin16x16.xpm +0 -25
- data/samples/bigdemo/icons/wxwin32x32.png +0 -0
- data/samples/bigdemo/icons/wxwin48x48.png +0 -0
- data/samples/bigdemo/run.rb +0 -98
- data/samples/bigdemo/tips.txt +0 -7
- data/samples/bigdemo/utils.rb +0 -20
- data/samples/bigdemo/wxArtProvider.rbw +0 -282
- data/samples/bigdemo/wxBitmapButton.rbw +0 -65
- data/samples/bigdemo/wxButton.rbw +0 -64
- data/samples/bigdemo/wxCalendarCtrl.rbw +0 -59
- data/samples/bigdemo/wxCheckBox.rbw +0 -50
- data/samples/bigdemo/wxCheckListBox.rbw +0 -65
- data/samples/bigdemo/wxChoice.rbw +0 -47
- data/samples/bigdemo/wxChoicebook.rbw +0 -78
- data/samples/bigdemo/wxColourDialog.rbw +0 -33
- data/samples/bigdemo/wxComboBox.rbw +0 -77
- data/samples/bigdemo/wxCursor.rbw +0 -136
- data/samples/bigdemo/wxDialog.rbw +0 -74
- data/samples/bigdemo/wxDirDialog.rbw +0 -29
- data/samples/bigdemo/wxDragImage.rbw +0 -70
- data/samples/bigdemo/wxFileDialog.rbw +0 -37
- data/samples/bigdemo/wxFileDialog_Save.rbw +0 -35
- data/samples/bigdemo/wxFindReplaceDialog.rbw +0 -82
- data/samples/bigdemo/wxFontDialog.rbw +0 -200
- data/samples/bigdemo/wxFrame.rbw +0 -53
- data/samples/bigdemo/wxGauge.rbw +0 -65
- data/samples/bigdemo/wxGenericDirCtrl.rbw +0 -74
- data/samples/bigdemo/wxGrid.rbw +0 -66
- data/samples/bigdemo/wxHtmlHelpController.rbw +0 -52
- data/samples/bigdemo/wxListBox.rbw +0 -140
- data/samples/bigdemo/wxListCtrl_virtual.rbw +0 -112
- data/samples/bigdemo/wxMDIWindows.rbw +0 -50
- data/samples/bigdemo/wxMenu.rbw +0 -247
- data/samples/bigdemo/wxMessageDialog.rbw +0 -27
- data/samples/bigdemo/wxMiniFrame.rbw +0 -70
- data/samples/bigdemo/wxMultipleChoiceDialog.rbw +0 -29
- data/samples/bigdemo/wxNotebook.rbw +0 -136
- data/samples/bigdemo/wxProgressDialog.rbw +0 -43
- data/samples/bigdemo/wxRadioBox.rbw +0 -72
- data/samples/bigdemo/wxRadioButton.rbw +0 -125
- data/samples/bigdemo/wxSashWindow.rbw +0 -141
- data/samples/bigdemo/wxScrolledMessageDialog.rbw +0 -57
- data/samples/bigdemo/wxScrolledWindow.rbw +0 -199
- data/samples/bigdemo/wxSingleChoiceDialog.rbw +0 -33
- data/samples/bigdemo/wxSlider.rbw +0 -42
- data/samples/bigdemo/wxSpinButton.rbw +0 -50
- data/samples/bigdemo/wxSpinCtrl.rbw +0 -51
- data/samples/bigdemo/wxSplitterWindow.rbw +0 -63
- data/samples/bigdemo/wxStaticBitmap.rbw +0 -47
- data/samples/bigdemo/wxStaticText.rbw +0 -55
- data/samples/bigdemo/wxStatusBar.rbw +0 -126
- data/samples/bigdemo/wxTextCtrl.rbw +0 -149
- data/samples/bigdemo/wxTextEntryDialog.rbw +0 -31
- data/samples/bigdemo/wxToggleButton.rbw +0 -49
- data/samples/bigdemo/wxToolBar.rbw +0 -131
- data/samples/bigdemo/wxTreeCtrl.rbw +0 -191
- data/samples/caret/caret.rb +0 -298
- data/samples/caret/mondrian.xpm +0 -44
- data/samples/controls/books.rb +0 -189
- data/samples/controls/choice.xpm +0 -27
- data/samples/controls/combo.xpm +0 -27
- data/samples/controls/controls.rb +0 -1099
- data/samples/controls/gauge.xpm +0 -27
- data/samples/controls/list.xpm +0 -27
- data/samples/controls/mondrian.ico +0 -0
- data/samples/controls/mondrian.xpm +0 -44
- data/samples/controls/radio.xpm +0 -27
- data/samples/controls/stattext.xpm +0 -24
- data/samples/controls/test2.bmp +0 -0
- data/samples/controls/text.xpm +0 -27
- data/samples/controls/tn_books.png +0 -0
- data/samples/controls/tn_controls.png +0 -0
- data/samples/etc/choice.rb +0 -87
- data/samples/etc/tn_choice.png +0 -0
- data/samples/text/mondrian.ico +0 -0
- data/samples/text/mondrian.xpm +0 -44
- /data/samples/{caret → etc}/tn_caret.png +0 -0
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# Common base class for single line text entry fields.
|
10
|
+
#
|
10
11
|
# This class is not a control itself, as it doesn't derive from {Wx::Window}. Instead it is used as a base class by other controls, notably {Wx::TextCtrl} and {Wx::ComboBox} and gathers the methods common to both of them.
|
11
12
|
#
|
12
13
|
# Category: {Wx::Controls}
|
@@ -20,12 +21,14 @@ module Wx
|
|
20
21
|
|
21
22
|
# @overload set_margins(pt)
|
22
23
|
# Attempts to set the control margins.
|
24
|
+
#
|
23
25
|
# When margins are given as {Wx::Point}, x indicates the left and y the top margin. Use -1 to indicate that an existing value should be used.
|
24
26
|
# true if setting of all requested margins was successful.
|
25
27
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
26
28
|
# @return [Boolean]
|
27
29
|
# @overload set_margins(left, top=-1)
|
28
30
|
# Attempts to set the control margins.
|
31
|
+
#
|
29
32
|
# When margins are given as {Wx::Point}, x indicates the left and y the top margin. Use -1 to indicate that an existing value should be used.
|
30
33
|
# true if setting of all requested margins was successful.
|
31
34
|
# @param left [Integer]
|
@@ -35,11 +38,12 @@ module Wx
|
|
35
38
|
alias_method :margins=, :set_margins
|
36
39
|
|
37
40
|
# Appends the text to the end of the text control.
|
41
|
+
#
|
38
42
|
# <div class="wxrb-remark">
|
39
43
|
# <b>Remark:</b>
|
40
44
|
# <p>After the text is appended, the insertion point will be at the end of the text control. If this behaviour is not desired, the programmer should use {Wx::TextEntry#get_insertion_point} and {Wx::TextEntry#set_insertion_point}.
|
41
45
|
# </p>
|
42
|
-
# </div
|
46
|
+
# </div>
|
43
47
|
# @see Wx::TextEntry#write_text
|
44
48
|
# @param text [String] Text to write to the text control.
|
45
49
|
# @return [void]
|
@@ -47,12 +51,14 @@ module Wx
|
|
47
51
|
|
48
52
|
# @overload auto_complete(choices)
|
49
53
|
# Call this function to enable auto-completion of the text typed in a single-line text control using the given choices.
|
54
|
+
#
|
50
55
|
# true if the auto-completion was enabled or false if the operation failed, typically because auto-completion is not supported by the current platform.
|
51
56
|
# @see Wx::TextEntry#auto_complete_file_names
|
52
57
|
# @param choices [Array<String>]
|
53
58
|
# @return [Boolean]
|
54
59
|
# @overload auto_complete(completer)
|
55
60
|
# Enable auto-completion using the provided completer object.
|
61
|
+
#
|
56
62
|
# This method should be used instead of {Wx::TextEntry#auto_complete} overload taking the array of possible completions if the total number of strings is too big as it allows returning the completions dynamically, depending on the text already entered by user and so is more efficient.
|
57
63
|
# The specified completer object will be used to retrieve the list of possible completions for the already entered text and will be deleted by {Wx::TextEntry} itself when it's not needed any longer.
|
58
64
|
# Notice that you need to include <code>Wx::/textcompleter.h</code> in order to define your class inheriting from {Wx::TextCompleter}.
|
@@ -64,6 +70,7 @@ module Wx
|
|
64
70
|
def auto_complete(*args) end
|
65
71
|
|
66
72
|
# Call this function to enable auto-completion of the text typed in a single-line text control using all valid file system paths.
|
73
|
+
#
|
67
74
|
# Notice that currently this function is only implemented in WXMSW port and does nothing under the other platforms.
|
68
75
|
#
|
69
76
|
# true if the auto-completion was enabled or false if the operation failed, typically because auto-completion is not supported by the current platform.
|
@@ -72,6 +79,7 @@ module Wx
|
|
72
79
|
def auto_complete_file_names; end
|
73
80
|
|
74
81
|
# Call this function to enable auto-completion of the text using the file system directories.
|
82
|
+
#
|
75
83
|
# Unlike {Wx::TextEntry#auto_complete_file_names} which completes both file names and directories, this function only completes the directory names.
|
76
84
|
# Notice that currently this function is only implemented in WXMSW port and does nothing under the other platforms.
|
77
85
|
#
|
@@ -91,6 +99,7 @@ module Wx
|
|
91
99
|
alias_method :can_cut?, :can_cut
|
92
100
|
|
93
101
|
# Returns true if the contents of the clipboard can be pasted into the text control.
|
102
|
+
#
|
94
103
|
# On some platforms (Motif, GTK) this is an approximation and returns true if the control is editable, false otherwise.
|
95
104
|
# @return [Boolean]
|
96
105
|
def can_paste; end
|
@@ -107,6 +116,7 @@ module Wx
|
|
107
116
|
alias_method :can_undo?, :can_undo
|
108
117
|
|
109
118
|
# Sets the new text control value.
|
119
|
+
#
|
110
120
|
# It also marks the control as not-modified which means that IsModified() would return false immediately after the call to {Wx::TextEntry#change_value}.
|
111
121
|
# The insertion point is set to the start of the control (i.e. position 0) by this function.
|
112
122
|
# This functions does not generate the {Wx::EVT_TEXT} event but otherwise is identical to {Wx::TextEntry#set_value}.
|
@@ -116,6 +126,7 @@ module Wx
|
|
116
126
|
def change_value(value) end
|
117
127
|
|
118
128
|
# Clears the text in the control.
|
129
|
+
#
|
119
130
|
# Note that this function will generate a {Wx::EVT_TEXT} event, i.e. its effect is identical to calling SetValue("").
|
120
131
|
# @return [void]
|
121
132
|
def clear; end
|
@@ -129,11 +140,13 @@ module Wx
|
|
129
140
|
def cut; end
|
130
141
|
|
131
142
|
# Convert all text entered into the control to upper case.
|
143
|
+
#
|
132
144
|
# Call this method to ensure that all text entered into the control is converted on the fly to upper case. If the control is not empty, its existing contents is also converted to upper case.
|
133
145
|
# @return [void]
|
134
146
|
def force_upper; end
|
135
147
|
|
136
148
|
# Returns the insertion point, or cursor, position.
|
149
|
+
#
|
137
150
|
# This is defined as the zero based index of the character position to the right of the insertion point. For example, if the insertion point is at the end of the single-line text control, it is equal to {Wx::TextEntry#get_last_position}.
|
138
151
|
# Notice that insertion position is, in general, different from the index of the character the cursor position at in the string returned by {Wx::TextEntry#get_value}. While this is always the case for the single line controls, multi-line controls can use two characters <code>"\\r\\n"</code> as line separator (this is notably the case under MSW) meaning that indices in the control and its string value are offset by 1 for every line.
|
139
152
|
# Hence to correctly get the character at the current cursor position, taking into account that there can be none if the cursor is at the end of the string, you could do the following:
|
@@ -156,6 +169,7 @@ module Wx
|
|
156
169
|
alias_method :last_position, :get_last_position
|
157
170
|
|
158
171
|
# Returns the string containing the text starting in the positions from and up to to in the control.
|
172
|
+
#
|
159
173
|
# The positions must have been returned by another {Wx::TextCtrl} method. Please note that the positions in a multiline {Wx::TextCtrl} do <b>not</b> correspond to the indices in the string returned by {Wx::TextEntry#get_value} because of the different new line representations (CR or CR LF) and so this method should be used to obtain the correct results instead of extracting parts of the entire value. It may also be more efficient, especially if the control contains a lot of data.
|
160
174
|
# @param from [Integer]
|
161
175
|
# @param to [Integer]
|
@@ -164,30 +178,35 @@ module Wx
|
|
164
178
|
alias_method :range, :get_range
|
165
179
|
|
166
180
|
# Gets the current selection span.
|
181
|
+
#
|
167
182
|
# If the returned values are equal, there was no selection. Please note that the indices returned may be used with the other {Wx::TextCtrl} methods but don't necessarily represent the correct indices into the string returned by {Wx::TextEntry#get_value} for multiline controls under Windows (at least,) you should use {Wx::TextEntry#get_string_selection} to get the selected text.
|
168
183
|
# @return [Array(Integer,Integer)]
|
169
184
|
def get_selection; end
|
170
185
|
alias_method :selection, :get_selection
|
171
186
|
|
172
187
|
# Gets the text currently selected in the control.
|
188
|
+
#
|
173
189
|
# If there is no selection, the returned string is empty.
|
174
190
|
# @return [String]
|
175
191
|
def get_string_selection; end
|
176
192
|
alias_method :string_selection, :get_string_selection
|
177
193
|
|
178
194
|
# Gets the contents of the control.
|
195
|
+
#
|
179
196
|
# Notice that for a multiline text control, the lines will be separated by (Unix-style) <code>\n</code> characters, even under Windows where they are separated by a <code>\r\n</code> sequence in the native control.
|
180
197
|
# @return [String]
|
181
198
|
def get_value; end
|
182
199
|
alias_method :value, :get_value
|
183
200
|
|
184
201
|
# Returns true if the controls contents may be edited by user (note that it always can be changed by the program).
|
202
|
+
#
|
185
203
|
# In other words, this functions returns true if the control hasn't been put in read-only mode by a previous call to {Wx::TextEntry#set_editable}.
|
186
204
|
# @return [Boolean]
|
187
205
|
def is_editable; end
|
188
206
|
alias_method :editable?, :is_editable
|
189
207
|
|
190
208
|
# Returns true if the control is currently empty.
|
209
|
+
#
|
191
210
|
# This is the same as <code>Wx::TextEntry#get_value</code>.empty() but can be much more efficient for the multiline controls containing big amounts of text.
|
192
211
|
# @return [Boolean]
|
193
212
|
def is_empty; end
|
@@ -198,11 +217,13 @@ module Wx
|
|
198
217
|
def paste; end
|
199
218
|
|
200
219
|
# If there is a redo facility and the last operation can be redone, redoes the last operation.
|
220
|
+
#
|
201
221
|
# Does nothing if there is no redo facility.
|
202
222
|
# @return [void]
|
203
223
|
def redo_; end
|
204
224
|
|
205
225
|
# Removes the text starting at the first given position up to (but not including) the character at the last position.
|
226
|
+
#
|
206
227
|
# This function puts the current insertion point position at to as a side effect.
|
207
228
|
# @param from [Integer] The first position.
|
208
229
|
# @param to [Integer] The last position.
|
@@ -210,6 +231,7 @@ module Wx
|
|
210
231
|
def remove(from, to) end
|
211
232
|
|
212
233
|
# Replaces the text starting at the first position up to (but not including) the character at the last position with the given text.
|
234
|
+
#
|
213
235
|
# This function puts the current insertion point position at to as a side effect.
|
214
236
|
# @param from [Integer] The first position.
|
215
237
|
# @param to [Integer] The last position.
|
@@ -219,6 +241,7 @@ module Wx
|
|
219
241
|
|
220
242
|
# Makes the text item editable or read-only, overriding the <b>{Wx::TE_READONLY}</b> flag.
|
221
243
|
#
|
244
|
+
#
|
222
245
|
# @see Wx::TextEntry#is_editable
|
223
246
|
# @param editable [Boolean] If true, the control is editable. If false, the control is read-only.
|
224
247
|
# @return [void]
|
@@ -232,11 +255,13 @@ module Wx
|
|
232
255
|
alias_method :insertion_point=, :set_insertion_point
|
233
256
|
|
234
257
|
# Sets the insertion point at the end of the text control.
|
258
|
+
#
|
235
259
|
# This is equivalent to calling {Wx::TextCtrl#set_insertion_point} with {Wx::TextCtrl#get_last_position} argument.
|
236
260
|
# @return [void]
|
237
261
|
def set_insertion_point_end; end
|
238
262
|
|
239
263
|
# This function sets the maximum number of characters the user can enter into the control.
|
264
|
+
#
|
240
265
|
# In other words, it allows limiting the text value length to len not counting the terminating NUL character.
|
241
266
|
# If len is 0, the previously set max length limit, if any, is discarded and the user may enter as much text as the underlying native text control widget supports (typically at least 32Kb). If the user tries to enter more characters into the text control when it already is filled up to the maximal length, a {Wx::EVT_TEXT_MAXLEN} event is sent to notify the program about it (giving it the possibility to show an explanatory message, for example) and the extra input is discarded.
|
242
267
|
# Note that in WXGTK this function may only be used with single line text controls.
|
@@ -246,6 +271,7 @@ module Wx
|
|
246
271
|
alias_method :max_length=, :set_max_length
|
247
272
|
|
248
273
|
# Selects the text starting at the first position up to (but not including) the character at the last position.
|
274
|
+
#
|
249
275
|
# If both parameters are equal to -1 all text in the control is selected.
|
250
276
|
# Notice that the insertion point will be moved to from by this function.
|
251
277
|
# @see Wx::TextEntry#select_all
|
@@ -256,6 +282,7 @@ module Wx
|
|
256
282
|
|
257
283
|
# Selects all text in the control.
|
258
284
|
#
|
285
|
+
#
|
259
286
|
# @see Wx::TextEntry#set_selection
|
260
287
|
# @return [void]
|
261
288
|
def select_all; end
|
@@ -265,6 +292,7 @@ module Wx
|
|
265
292
|
def select_none; end
|
266
293
|
|
267
294
|
# Sets a hint shown in an empty unfocused text control.
|
295
|
+
#
|
268
296
|
# The hints are usually used to indicate to the user what is supposed to be entered into the given entry field, e.g. a common use of them is to show an explanation of what can be entered in a {Wx::SearchCtrl}.
|
269
297
|
# The hint is shown (usually greyed out) for an empty control until it gets focus and is shown again if the control loses it and remains empty. It won't be shown once the control has a non-empty value, although it will be shown again if the control contents is cleared. Because of this, it generally only makes sense to use hints with the controls which are initially empty.
|
270
298
|
# Notice that hints are known as cue banners under MSW or placeholder strings under macOS.
|
@@ -273,7 +301,7 @@ module Wx
|
|
273
301
|
# <b>Remark:</b>
|
274
302
|
# <p>Currently implemented natively on Windows (Vista and later only), macOS and GTK+ (3.2 and later).
|
275
303
|
# </p>
|
276
|
-
# </div
|
304
|
+
# </div>
|
277
305
|
#
|
278
306
|
# For the platforms without native hints support, the implementation has several known limitations. Notably, the hint display will not be properly updated if you change {Wx::TextEntry} contents programmatically when the hint is displayed using methods other than {Wx::TextEntry#set_value} or {Wx::TextEntry#change_value} or others which use them internally (e.g. {Wx::TextEntry#clear}). In other words, currently you should avoid calling methods such as {Wx::TextEntry#write_text} or {Wx::TextEntry#replace} when using hints and the text control is empty. If you bind to the control's focus and {Wx::EVT_TEXT} events, you must call {Wx::Event#skip} on them so that the generic implementation works correctly.
|
279
307
|
# Another limitation is that hints are ignored for the controls with {Wx::TE_PASSWORD} style.
|
@@ -282,32 +310,35 @@ module Wx
|
|
282
310
|
# <b>Remark:</b>
|
283
311
|
# <p>Hints can be used for single line text controls under all platforms, but only MSW and GTK+ 2 support them for multi-line text controls, they are ignored for them under the other platforms.
|
284
312
|
# </p>
|
285
|
-
# </div
|
313
|
+
# </div>
|
286
314
|
# @param hint [String]
|
287
315
|
# @return [Boolean]
|
288
316
|
def set_hint(hint) end
|
289
317
|
alias_method :hint=, :set_hint
|
290
318
|
|
291
319
|
# Returns the current hint string.
|
320
|
+
#
|
292
321
|
# See {Wx::TextEntry#set_hint} for more information about hints.
|
293
322
|
# @return [String]
|
294
323
|
def get_hint; end
|
295
324
|
alias_method :hint, :get_hint
|
296
325
|
|
297
326
|
# Returns the margins used by the control.
|
327
|
+
#
|
298
328
|
# The x field of the returned point is the horizontal margin and the y field is the vertical one.
|
299
329
|
#
|
300
330
|
# <div class="wxrb-remark">
|
301
331
|
# <b>Remark:</b>
|
302
332
|
# <p>If given margin cannot be accurately determined, its value will be set to -1. On some platforms you cannot obtain valid margin values until you have called {Wx::TextEntry#set_margins}.
|
303
333
|
# </p>
|
304
|
-
# </div
|
334
|
+
# </div>
|
305
335
|
# @see Wx::TextEntry#set_margins
|
306
336
|
# @return [Wx::Point]
|
307
337
|
def get_margins; end
|
308
338
|
alias_method :margins, :get_margins
|
309
339
|
|
310
340
|
# Sets the new text control value.
|
341
|
+
#
|
311
342
|
# It also marks the control as not-modified which means that IsModified() would return false immediately after the call to {Wx::TextEntry#set_value}.
|
312
343
|
# The insertion point is set to the start of the control (i.e. position 0) by this function unless the control value doesn't change at all, in which case the insertion point is left at its original position.
|
313
344
|
# Note that, unlike most other functions changing the controls values, this function generates a {Wx::EVT_TEXT} event. To avoid this you can use {Wx::TextEntry#change_value} instead.
|
@@ -317,16 +348,18 @@ module Wx
|
|
317
348
|
alias_method :value=, :set_value
|
318
349
|
|
319
350
|
# If there is an undo facility and the last operation can be undone, undoes the last operation.
|
351
|
+
#
|
320
352
|
# Does nothing if there is no undo facility.
|
321
353
|
# @return [void]
|
322
354
|
def undo; end
|
323
355
|
|
324
356
|
# Writes the text into the text control at the current insertion position.
|
357
|
+
#
|
325
358
|
# <div class="wxrb-remark">
|
326
359
|
# <b>Remark:</b>
|
327
360
|
# <p>Newlines in the text string are the only control characters allowed, and they will cause appropriate line breaks. See operator<<() and {Wx::TextEntry#append_text} for more convenient ways of writing to the window. After the write operation, the insertion point will be at the end of the inserted text, so subsequent write operations will be appended. To append text after the user may have interacted with the control, call {Wx::TextCtrl#set_insertion_point_end} before writing.
|
328
361
|
# </p>
|
329
|
-
# </div
|
362
|
+
# </div>
|
330
363
|
# @param text [String] Text to write to the text control.
|
331
364
|
# @return [void]
|
332
365
|
def write_text(text) end
|
@@ -334,14 +367,14 @@ module Wx
|
|
334
367
|
end # TextEntry
|
335
368
|
|
336
369
|
# Base class for custom text completer objects.
|
370
|
+
#
|
337
371
|
# Custom completer objects used with {Wx::TextEntry#auto_complete} must derive from this class and implement its pure virtual method returning the completions. You would typically use a custom completer when the total number of completions is too big for performance to be acceptable if all of them need to be returned at once but if they can be generated hierarchically, i.e. only the first component initially, then the second one after the user finished entering the first one and so on.
|
338
372
|
# When inheriting from this class you need to implement its two pure virtual methods. This allows returning the results incrementally and may or not be convenient depending on where do they come from. If you prefer to return all the completions at once, you should inherit from {Wx::TextCompleterSimple} instead.
|
339
373
|
#
|
340
|
-
#
|
341
|
-
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
342
374
|
class TextCompleter < ::Object
|
343
375
|
|
344
376
|
# Function called to start iteration over the completions for the given prefix.
|
377
|
+
#
|
345
378
|
# This function could start a database query, for example, if the results are read from a database.
|
346
379
|
# Notice that under some platforms (currently MSW only) it is called from another thread context and so the appropriate synchronization mechanism should be used to access any data also used by the main UI thread.
|
347
380
|
#
|
@@ -351,6 +384,7 @@ module Wx
|
|
351
384
|
def start(prefix) end
|
352
385
|
|
353
386
|
# Called to retrieve the next completion.
|
387
|
+
#
|
354
388
|
# All completions returned by this function should start with the prefix passed to the last call to {Wx::TextCompleter#start}.
|
355
389
|
# Notice that, as {Wx::TextCompleter#start}, this method is called from a worker thread context under MSW.
|
356
390
|
# The next completion or an empty string to indicate that there are no more of them.
|
@@ -361,6 +395,7 @@ module Wx
|
|
361
395
|
end # TextCompleter
|
362
396
|
|
363
397
|
# A simpler base class for custom completer objects.
|
398
|
+
#
|
364
399
|
# This class may be simpler to use than the base {Wx::TextCompleter} as it allows to implement only a single virtual method instead of two of them (at the price of storing all completions in a temporary array).
|
365
400
|
# Here is a simple example of a custom completer that completes the names of some chess pieces. Of course, as the total list here has only four items it would have been much simpler to just specify the array containing all the completions in this example but the same approach could be used when the total number of completions is much higher provided the number of possibilities for each word is still relatively small:
|
366
401
|
# ```ruby
|
@@ -383,11 +418,10 @@ module Wx
|
|
383
418
|
# text_ctrl.auto_complete(MyTextCompleter.new)
|
384
419
|
# ```
|
385
420
|
#
|
386
|
-
#
|
387
|
-
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
388
421
|
class TextCompleterSimple < TextCompleter
|
389
422
|
|
390
423
|
# Pure virtual method returning all possible completions for the given prefix.
|
424
|
+
#
|
391
425
|
# The custom completer should examine the provided prefix and return all the possible completions for it in the output array res.
|
392
426
|
# Please notice that the returned values should start with the prefix, otherwise they will be simply ignored, making adding them to the array in the first place useless.
|
393
427
|
# Notice that this function may be called from thread other than main one (this is currently always the case under MSW) so the appropriate synchronization mechanism should be used to protect the shared data.
|
@@ -15,6 +15,7 @@ module Wx
|
|
15
15
|
GET_PASSWORD_FROM_USER_PROMPT_STR = "Enter Password"
|
16
16
|
|
17
17
|
# Pop up a dialog box with title set to caption, message, and a default_value.
|
18
|
+
#
|
18
19
|
# The user may type in text and press OK to return this text, or press Cancel to return the empty string.
|
19
20
|
# If centre is true, the message text (which may include new line characters) is centred; if false, the message is left-justified.
|
20
21
|
# This function is a wrapper around {Wx::TextEntryDialog} and while it is usually more convenient to use, using the dialog directly is more flexible, e.g. it allows you to specify the {Wx::TE_MULTILINE} to allow the user enter multiple lines of text while this function is limited to single line entry only.
|
@@ -29,6 +30,7 @@ module Wx
|
|
29
30
|
def self.get_text_from_user(message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, default_value=(''), parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
|
30
31
|
|
31
32
|
# Similar to {get_text_from_user} but the text entered in the dialog is not shown on screen but replaced with stars.
|
33
|
+
#
|
32
34
|
# This is intended to be used for entering passwords as the function name implies.
|
33
35
|
# @param message [String]
|
34
36
|
# @param caption [String]
|
@@ -41,6 +43,7 @@ module Wx
|
|
41
43
|
def self.get_password_from_user(message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, default_value=(''), parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
|
42
44
|
|
43
45
|
# This class represents a dialog that requests a one-line text string from the user.
|
46
|
+
#
|
44
47
|
# It is implemented as a generic wxWidgets dialog.
|
45
48
|
#
|
46
49
|
# Category: Common Dialogs
|
@@ -52,6 +55,7 @@ module Wx
|
|
52
55
|
|
53
56
|
# @overload set_text_validator(validator)
|
54
57
|
# Associate a validator with the text control used by the dialog.
|
58
|
+
#
|
55
59
|
# These methods can be used to limit the user entry to only some characters, e.g.
|
56
60
|
# ```ruby
|
57
61
|
# Wx::TextEntryDialog(self, ...) do |dlg|
|
@@ -68,6 +72,7 @@ module Wx
|
|
68
72
|
# @return [void]
|
69
73
|
# @overload set_text_validator(style=Wx::TextValidatorStyle::FILTER_NONE)
|
70
74
|
# Associate a validator with the text control used by the dialog.
|
75
|
+
#
|
71
76
|
# These methods can be used to limit the user entry to only some characters, e.g.
|
72
77
|
# ```ruby
|
73
78
|
# Wx::TextEntryDialog(self, ...) do |dlg|
|
@@ -87,10 +92,12 @@ module Wx
|
|
87
92
|
|
88
93
|
# @overload initialize()
|
89
94
|
# Default constructor.
|
95
|
+
#
|
90
96
|
# Call {Wx::TextEntryDialog#create} to really create the dialog later.
|
91
97
|
# @return [Wx::TextEntryDialog]
|
92
98
|
# @overload initialize(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION)
|
93
99
|
# Constructor.
|
100
|
+
#
|
94
101
|
# Use {Wx::TextEntryDialog#show_modal} to show the dialog.
|
95
102
|
# See {Wx::TextEntryDialog#create} method for parameter description.
|
96
103
|
# @param parent [Wx::Window]
|
@@ -118,6 +125,7 @@ module Wx
|
|
118
125
|
|
119
126
|
# This function sets the maximum number of characters the user can enter into this dialog.
|
120
127
|
#
|
128
|
+
#
|
121
129
|
# @see Wx::TextEntry#set_max_length
|
122
130
|
# @param len [Integer]
|
123
131
|
# @return [void]
|
@@ -131,12 +139,14 @@ module Wx
|
|
131
139
|
alias_method :value=, :set_value
|
132
140
|
|
133
141
|
# Convert all text entered into the text control used by the dialog to upper case.
|
142
|
+
#
|
134
143
|
# Call this method to ensure that all text entered into the text control used by the dialog is converted on the fly to upper case. If the text control is not empty, its existing contents is also converted to upper case.
|
135
144
|
# @see Wx::TextEntry#force_upper
|
136
145
|
# @return [void]
|
137
146
|
def force_upper; end
|
138
147
|
|
139
148
|
# Shows the dialog, returning {Wx::StandardID::ID_OK} if the user pressed OK, and {Wx::StandardID::ID_CANCEL} otherwise.
|
149
|
+
#
|
140
150
|
# Call {Wx::TextEntryDialog#get_value} to retrieve the values of the string entered by the user after showing the dialog.
|
141
151
|
# @return [Integer]
|
142
152
|
def show_modal; end
|
@@ -144,6 +154,7 @@ module Wx
|
|
144
154
|
end # TextEntryDialog
|
145
155
|
|
146
156
|
# This class represents a dialog that requests a one-line password string from the user.
|
157
|
+
#
|
147
158
|
# It is implemented as a generic wxWidgets dialog.
|
148
159
|
#
|
149
160
|
# Category: Common Dialogs
|
@@ -154,6 +165,7 @@ module Wx
|
|
154
165
|
class PasswordEntryDialog < TextEntryDialog
|
155
166
|
|
156
167
|
# Constructor.
|
168
|
+
#
|
157
169
|
# Use {Wx::TextEntryDialog#show_modal} to show the dialog.
|
158
170
|
# @param parent [Wx::Window] Parent window.
|
159
171
|
# @param message [String] Message to show on the dialog.
|
@@ -68,6 +68,7 @@ module Wx
|
|
68
68
|
end # TextValidatorStyle
|
69
69
|
|
70
70
|
# {Wx::TextValidator} validates text controls, providing a variety of filtering behaviours.
|
71
|
+
#
|
71
72
|
# For more information, please see wxValidator Overview.
|
72
73
|
#
|
73
74
|
# Category: {Wx::Validators}
|
@@ -81,6 +82,11 @@ module Wx
|
|
81
82
|
# @wxrb_require USE_VALIDATORS
|
82
83
|
class TextValidator < Validator
|
83
84
|
|
85
|
+
# Copy constructor.
|
86
|
+
# @param validator [Wx::TextValidator]
|
87
|
+
# @return [Wx::TextValidator]
|
88
|
+
def initialize(validator) end
|
89
|
+
|
84
90
|
# Clones the text validator using the copy constructor.
|
85
91
|
# @return [Wx::TextValidator]
|
86
92
|
def clone; end
|
@@ -107,6 +113,7 @@ module Wx
|
|
107
113
|
|
108
114
|
# Returns the validator style.
|
109
115
|
#
|
116
|
+
#
|
110
117
|
# @see Wx::TextValidator#has_flag
|
111
118
|
# @return [Integer]
|
112
119
|
def get_style; end
|
@@ -119,6 +126,7 @@ module Wx
|
|
119
126
|
alias_method :has_flag?, :has_flag
|
120
127
|
|
121
128
|
# Sets the exclude list (invalid values for the user input).
|
129
|
+
#
|
122
130
|
# <div class="wxrb-note">
|
123
131
|
# <b>Note:</b>
|
124
132
|
# <p>Beware that exclusion takes priority over inclusion.
|
@@ -130,6 +138,7 @@ module Wx
|
|
130
138
|
alias_method :excludes=, :set_excludes
|
131
139
|
|
132
140
|
# Sets the exclude char list (invalid characters for the user input).
|
141
|
+
#
|
133
142
|
# <div class="wxrb-note">
|
134
143
|
# <b>Note:</b>
|
135
144
|
# <p>Beware that exclusion takes priority over inclusion.
|
@@ -148,6 +157,7 @@ module Wx
|
|
148
157
|
|
149
158
|
# Sets the include list (valid values for the user input).
|
150
159
|
#
|
160
|
+
#
|
151
161
|
# @see Wx::TextValidator#is_included
|
152
162
|
# @param stringList [Array<String>]
|
153
163
|
# @return [void]
|
@@ -155,6 +165,7 @@ module Wx
|
|
155
165
|
alias_method :includes=, :set_includes
|
156
166
|
|
157
167
|
# Sets the include char list (additional valid values for the user input).
|
168
|
+
#
|
158
169
|
# <div class="wxrb-note">
|
159
170
|
# <b>Note:</b>
|
160
171
|
# <p>Any explicitly excluded characters will still be excluded even if they're part of chars.
|
@@ -166,6 +177,7 @@ module Wx
|
|
166
177
|
alias_method :char_includes=, :set_char_includes
|
167
178
|
|
168
179
|
# Adds exclude to the list of excluded values.
|
180
|
+
#
|
169
181
|
# <div class="wxrb-note">
|
170
182
|
# <b>Note:</b>
|
171
183
|
# <p>Beware that exclusion takes priority over inclusion.
|
@@ -176,6 +188,7 @@ module Wx
|
|
176
188
|
def add_exclude(exclude) end
|
177
189
|
|
178
190
|
# Adds include to the list of included values.
|
191
|
+
#
|
179
192
|
# <div class="wxrb-note">
|
180
193
|
# <b>Note:</b>
|
181
194
|
# <p>Any explicitly excluded characters will still be excluded.
|
@@ -186,6 +199,7 @@ module Wx
|
|
186
199
|
def add_include(include) end
|
187
200
|
|
188
201
|
# Adds chars to the list of excluded characters.
|
202
|
+
#
|
189
203
|
# <div class="wxrb-note">
|
190
204
|
# <b>Note:</b>
|
191
205
|
# <p>Beware that exclusion takes priority over inclusion.
|
@@ -196,6 +210,7 @@ module Wx
|
|
196
210
|
def add_char_excludes(chars) end
|
197
211
|
|
198
212
|
# Adds chars to the list of included characters.
|
213
|
+
#
|
199
214
|
# <div class="wxrb-note">
|
200
215
|
# <b>Note:</b>
|
201
216
|
# <p>Any explicitly excluded characters will still be excluded even if they're part of chars.
|
@@ -206,6 +221,7 @@ module Wx
|
|
206
221
|
def add_char_includes(chars) end
|
207
222
|
|
208
223
|
# Sets the validator style which must be a combination of one or more of the {Wx::TextValidatorStyle} values.
|
224
|
+
#
|
209
225
|
# Note that not all possible combinations make sense! Also, some combinations have shorter and more idiomatic alternative, e.g. {Wx::TextValidatorStyle::FILTER_ALPHANUMERIC} can be used instead of <code>wxFILTER_ALPHA|wxFILTER_DIGITS</code>.
|
210
226
|
# @param style [Integer]
|
211
227
|
# @return [void]
|
@@ -11,6 +11,7 @@ module Wx
|
|
11
11
|
TP_DEFAULT = 0
|
12
12
|
|
13
13
|
# This control allows the user to enter time.
|
14
|
+
#
|
14
15
|
# It is similar to {Wx::DatePickerCtrl} but is used for time, and not date, selection. While {Wx::TimePickerCtrl#get_value} and {Wx::TimePickerCtrl#set_value} still work with values of type {Wx::DateTime} (because wxWidgets doesn't provide a time-only class), their date part is ignored by this control.
|
15
16
|
# It is only available if {Wx::Setup::USE_TIMEPICKCTRL} is set to 1.
|
16
17
|
# This control currently doesn't have any specific flags.
|
@@ -50,6 +51,7 @@ module Wx
|
|
50
51
|
def initialize(*args) end
|
51
52
|
|
52
53
|
# Create the control window.
|
54
|
+
#
|
53
55
|
# This method should only be used for objects created using default constructor.
|
54
56
|
#
|
55
57
|
# true if the control was successfully created or false if creation failed.
|
@@ -65,6 +67,7 @@ module Wx
|
|
65
67
|
def create(parent, id, dt=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TP_DEFAULT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TIME_PICKER_CTRL_NAME_STR) end
|
66
68
|
|
67
69
|
# Returns the currently entered time as hours, minutes and seconds.
|
70
|
+
#
|
68
71
|
# All the arguments must be non-NULL, false is returned otherwise and none of them is modified.
|
69
72
|
# @see Wx::TimePickerCtrl#set_time
|
70
73
|
# @return [Array(Boolean,Integer,Integer,Integer)]
|
@@ -72,12 +75,14 @@ module Wx
|
|
72
75
|
alias_method :time, :get_time
|
73
76
|
|
74
77
|
# Returns the currently entered time.
|
78
|
+
#
|
75
79
|
# The date part of the returned {Wx::DateTime} object is always set to today and should be ignored, only the time part is relevant.
|
76
80
|
# @return [Time,Date,DateTime]
|
77
81
|
def get_value; end
|
78
82
|
alias_method :value, :get_value
|
79
83
|
|
80
84
|
# Changes the current time of the control.
|
85
|
+
#
|
81
86
|
# Calling this method does not result in a time change event.
|
82
87
|
#
|
83
88
|
# true if the time was changed or false on failure, e.g. if the time components were invalid.
|
@@ -89,6 +94,7 @@ module Wx
|
|
89
94
|
def set_time(hour, min, sec) end
|
90
95
|
|
91
96
|
# Changes the current value of the control.
|
97
|
+
#
|
92
98
|
# The date part of dt is ignored, only the time part is displayed in the control. The dt object must however be valid.
|
93
99
|
# In particular, notice that it is a bad idea to use default {Wx::DateTime} constructor from hour, minute and second values as it uses the today date for the date part, which means that some values can be invalid if today happens to be the day of DST change. For example, when switching to summer time, the time 2:00 typically doesn't exist as the clocks jump directly to 3:00. To avoid this problem, use a fixed date on which DST is known not to change (e.g. Jan 1, 2012) for the date part of the argument or use {Wx::TimePickerCtrl#set_time}.
|
94
100
|
# Calling this method does not result in a time change event.
|
data/lib/wx/doc/gen/timer.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# The {Wx::Timer} class allows you to execute code at specified intervals.
|
10
|
+
#
|
10
11
|
# Its precision is platform-dependent, but in general will not be better than 1ms nor worse than 1s.
|
11
12
|
# There are three different ways to use this class:
|
12
13
|
#
|
@@ -31,10 +32,12 @@ module Wx
|
|
31
32
|
|
32
33
|
# @overload initialize()
|
33
34
|
# Default constructor.
|
35
|
+
#
|
34
36
|
# If you use it to construct the object and don't call {Wx::Timer#set_owner} later, you must override {Wx::Timer#notify} method to process the notifications.
|
35
37
|
# @return [Wx::Timer]
|
36
38
|
# @overload initialize(owner, id=-1)
|
37
39
|
# Creates a timer and associates it with owner.
|
40
|
+
#
|
38
41
|
# Please see {Wx::Timer#set_owner} for the description of parameters.
|
39
42
|
# @param owner [Wx::EvtHandler]
|
40
43
|
# @param id [Integer]
|
@@ -52,6 +55,7 @@ module Wx
|
|
52
55
|
alias_method :interval, :get_interval
|
53
56
|
|
54
57
|
# Returns the current owner of the timer.
|
58
|
+
#
|
55
59
|
# If non-NULL this is the event handler which will receive the timer events (see {Wx::TimerEvent}) when the timer is running.
|
56
60
|
# @return [Wx::EvtHandler]
|
57
61
|
def get_owner; end
|
@@ -68,12 +72,14 @@ module Wx
|
|
68
72
|
alias_method :running?, :is_running
|
69
73
|
|
70
74
|
# This member should be overridden by the user if the default constructor was used and {Wx::Timer#set_owner} wasn't called.
|
75
|
+
#
|
71
76
|
# Perform whatever action which is to be taken periodically here.
|
72
77
|
# Notice that throwing exceptions from this method is currently not supported, use event-based timer handling approach if an exception can be thrown while handling timer notifications.
|
73
78
|
# @return [void]
|
74
79
|
def notify; end
|
75
80
|
|
76
81
|
# Associates the timer with the given owner object.
|
82
|
+
#
|
77
83
|
# When the timer is running, the owner will receive timer events (see {Wx::TimerEvent}) with id equal to id specified here.
|
78
84
|
# @param owner [Wx::EvtHandler]
|
79
85
|
# @param id [Integer]
|
@@ -82,6 +88,7 @@ module Wx
|
|
82
88
|
alias_method :owner=, :set_owner
|
83
89
|
|
84
90
|
# (Re)starts the timer.
|
91
|
+
#
|
85
92
|
# If milliseconds parameter is -1 (value by default), the previous value is used. Returns false if the timer could not be started, true otherwise (in MS Windows timers are a limited resource).
|
86
93
|
# If oneShot is false (the default), the {Wx::Timer#notify} function will be called repeatedly until the timer is stopped. If true, it will be called only once and the timer will stop automatically.
|
87
94
|
# To make your code more readable you may also use the following symbolic constants:
|
@@ -96,6 +103,7 @@ module Wx
|
|
96
103
|
def start(milliseconds=-1, oneShot=Wx::TIMER_CONTINUOUS) end
|
97
104
|
|
98
105
|
# Starts the timer for a once-only notification.
|
106
|
+
#
|
99
107
|
# This is a simple wrapper for {Wx::Timer#start} with {Wx::TIMER_ONE_SHOT} parameter.
|
100
108
|
# @param milliseconds [Integer]
|
101
109
|
# @return [Boolean]
|
@@ -8,6 +8,7 @@ module Wx
|
|
8
8
|
|
9
9
|
# This function creates a {Wx::TipProvider} which may be used with {show_tip}.
|
10
10
|
#
|
11
|
+
#
|
11
12
|
# @see wxTipProvider Overview
|
12
13
|
# @param filename [String] The name of the file containing the tips, one per line.
|
13
14
|
# @param currentTip [Integer] The index of the first tip to show. Normally this index is remembered between the 2 program runs.
|
@@ -15,6 +16,7 @@ module Wx
|
|
15
16
|
def self.create_file_tip_provider(filename, currentTip) end
|
16
17
|
|
17
18
|
# This function shows a "startup tip" to the user.
|
19
|
+
#
|
18
20
|
# The return value is the state of the "Show tips at startup" checkbox.
|
19
21
|
# @see wxTipProvider Overview
|
20
22
|
# @param parent [Wx::Window] The parent window for the modal dialog.
|
@@ -24,6 +26,7 @@ module Wx
|
|
24
26
|
def self.show_tip(parent, tipProvider, showAtStartup=true) end
|
25
27
|
|
26
28
|
# This is the class used together with {show_tip} function.
|
29
|
+
#
|
27
30
|
# It must implement {Wx::TipProvider#get_tip} function and return the current tip from it (different tip each time it is called).
|
28
31
|
# You will never use this class yourself, but you need it to show startup tips with {show_tip}. Also, if you want to get the tips text from elsewhere than a simple text file, you will want to derive a new class from {Wx::TipProvider} and use it instead of the one returned by {create_file_tip_provider}.
|
29
32
|
#
|
@@ -41,12 +44,14 @@ module Wx
|
|
41
44
|
def initialize(currentTip) end
|
42
45
|
|
43
46
|
# Returns the index of the current tip (i.e. the one which would be returned by {Wx::TipProvider#get_tip}).
|
47
|
+
#
|
44
48
|
# The program usually remembers the value returned by this function after calling {show_tip}. Note that it is not the same as the value which was passed to {show_tip} + 1 because the user might have pressed the "Next" button in the tip dialog.
|
45
49
|
# @return [Integer]
|
46
50
|
def get_current_tip; end
|
47
51
|
alias_method :current_tip, :get_current_tip
|
48
52
|
|
49
53
|
# Return the text of the current tip and pass to the next one.
|
54
|
+
#
|
50
55
|
# This function is pure virtual, it should be implemented in the derived classes.
|
51
56
|
# @return [String]
|
52
57
|
def get_tip; end
|