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
data/lib/wx/doc/gen/menu_item.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# A menu item represents an item in a menu.
|
10
|
+
#
|
10
11
|
# Note that you usually don't have to deal with it directly as {Wx::Menu} methods usually construct an object of this class for you.
|
11
12
|
# Also please note that the methods related to fonts and bitmaps are currently only implemented for Windows, Mac and GTK+.
|
12
13
|
# ### Events emitted by this class
|
@@ -35,6 +36,7 @@ module Wx
|
|
35
36
|
class MenuItem < Object
|
36
37
|
|
37
38
|
# Returns the background colour associated with the menu item.
|
39
|
+
#
|
38
40
|
# Availability: only available for the WXMSW port.
|
39
41
|
# @return [Wx::Colour]
|
40
42
|
# @wxrb_require WXMSW
|
@@ -42,12 +44,14 @@ module Wx
|
|
42
44
|
alias_method :background_colour, :get_background_colour
|
43
45
|
|
44
46
|
# Returns the item bitmap.
|
47
|
+
#
|
45
48
|
# This method exists only for compatibility, please use {Wx::MenuItem#get_bitmap_bundle} in the new code.
|
46
49
|
# @return [Wx::Bitmap]
|
47
50
|
def get_bitmap; end
|
48
51
|
alias_method :bitmap, :get_bitmap
|
49
52
|
|
50
53
|
# Returns the bitmap bundle containing the bitmap used for this item.
|
54
|
+
#
|
51
55
|
# The returned bundle is invalid, i.e. empty, if no bitmap is associated with the item.
|
52
56
|
# @see Wx::MenuItem#set_bitmap
|
53
57
|
# @return [Wx::BitmapBundle]
|
@@ -55,6 +59,7 @@ module Wx
|
|
55
59
|
alias_method :bitmap_bundle, :get_bitmap_bundle
|
56
60
|
|
57
61
|
# Returns the bitmap used for disabled items.
|
62
|
+
#
|
58
63
|
# Availability: only available for the WXMSW port.
|
59
64
|
# @return [Wx::Bitmap]
|
60
65
|
# @wxrb_require WXMSW
|
@@ -62,6 +67,7 @@ module Wx
|
|
62
67
|
alias_method :disabled_bitmap, :get_disabled_bitmap
|
63
68
|
|
64
69
|
# Returns the font associated with the menu item.
|
70
|
+
#
|
65
71
|
# Availability: only available for the WXMSW port.
|
66
72
|
# @return [Wx::Font]
|
67
73
|
# @wxrb_require WXMSW
|
@@ -80,6 +86,7 @@ module Wx
|
|
80
86
|
|
81
87
|
# Returns the text associated with the menu item including any accelerator characters that were passed to the constructor or {Wx::MenuItem#set_item_label}.
|
82
88
|
#
|
89
|
+
#
|
83
90
|
# @see Wx::MenuItem#get_item_label_text
|
84
91
|
# @see Wx::MenuItem.get_label_text
|
85
92
|
# @return [String]
|
@@ -88,6 +95,7 @@ module Wx
|
|
88
95
|
|
89
96
|
# Returns the text associated with the menu item, without any accelerator characters.
|
90
97
|
#
|
98
|
+
#
|
91
99
|
# @see Wx::MenuItem#get_item_label
|
92
100
|
# @see Wx::MenuItem.get_label_text
|
93
101
|
# @return [String]
|
@@ -100,6 +108,7 @@ module Wx
|
|
100
108
|
alias_method :kind, :get_kind
|
101
109
|
|
102
110
|
# Gets the width of the menu item checkmark bitmap.
|
111
|
+
#
|
103
112
|
# Availability: only available for the WXMSW port.
|
104
113
|
# @return [Integer]
|
105
114
|
# @wxrb_require WXMSW
|
@@ -117,6 +126,7 @@ module Wx
|
|
117
126
|
alias_method :sub_menu, :get_sub_menu
|
118
127
|
|
119
128
|
# Returns the text colour associated with the menu item.
|
129
|
+
#
|
120
130
|
# Availability: only available for the WXMSW port.
|
121
131
|
# @return [Wx::Colour]
|
122
132
|
# @wxrb_require WXMSW
|
@@ -130,12 +140,14 @@ module Wx
|
|
130
140
|
alias_method :accel, :get_accel
|
131
141
|
|
132
142
|
# Returns true if the item is a check item.
|
143
|
+
#
|
133
144
|
# Unlike {Wx::MenuItem#is_checkable} this doesn't return true for the radio buttons.
|
134
145
|
# @return [Boolean]
|
135
146
|
def is_check; end
|
136
147
|
alias_method :check?, :is_check
|
137
148
|
|
138
149
|
# Returns true if the item is checkable.
|
150
|
+
#
|
139
151
|
# Notice that the radio buttons are considered to be checkable as well, so this method returns true for them too. Use {Wx::MenuItem#is_check} if you want to test for the check items only.
|
140
152
|
# @return [Boolean]
|
141
153
|
def is_checkable; end
|
@@ -167,6 +179,7 @@ module Wx
|
|
167
179
|
alias_method :sub_menu?, :is_sub_menu
|
168
180
|
|
169
181
|
# Sets the background colour associated with the menu item.
|
182
|
+
#
|
170
183
|
# Availability: only available for the WXMSW port.
|
171
184
|
# @param colour [Wx::Colour,String,Symbol]
|
172
185
|
# @return [void]
|
@@ -176,11 +189,13 @@ module Wx
|
|
176
189
|
|
177
190
|
# @overload set_bitmap(bmp)
|
178
191
|
# Sets the bitmap for the menu item.
|
192
|
+
#
|
179
193
|
# Notice that GTK+ uses a global setting called <code>gtk-menu-images</code> to determine if the images should be shown in the menus at all. If it is off (which is the case in e.g. Gnome 2.28 by default), no images will be shown, consistently with the native behaviour.
|
180
194
|
# @param bmp [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
181
195
|
# @return [void]
|
182
196
|
# @overload set_bitmap(bmp, checked)
|
183
197
|
# Sets the checked or unchecked bitmap for the menu item.
|
198
|
+
#
|
184
199
|
# It is equivalent to {Wx::MenuItem#set_bitmaps(bmp,wxNullBitmap)} if checked is true or SetBitmaps({Wx::NULL_BITMAP}, bmp) otherwise.
|
185
200
|
# Note that different bitmaps for checked and unchecked item states are not supported in most ports, while setting just a single bitmap using the overload above is supported in all of them.
|
186
201
|
# Availability: only available for the WXMSW port.
|
@@ -192,6 +207,7 @@ module Wx
|
|
192
207
|
alias_method :bitmap=, :set_bitmap
|
193
208
|
|
194
209
|
# Sets the checked/unchecked bitmaps for the menu item.
|
210
|
+
#
|
195
211
|
# The first bitmap is also used as the single bitmap for uncheckable menu items.
|
196
212
|
# Availability: only available for the WXMSW port.
|
197
213
|
# @param checked [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
@@ -202,6 +218,7 @@ module Wx
|
|
202
218
|
alias_method :bitmaps=, :set_bitmaps
|
203
219
|
|
204
220
|
# Sets the to be used for disabled menu items.
|
221
|
+
#
|
205
222
|
# Availability: only available for the WXMSW port.
|
206
223
|
# @param disabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
207
224
|
# @return [void]
|
@@ -210,6 +227,7 @@ module Wx
|
|
210
227
|
alias_method :disabled_bitmap=, :set_disabled_bitmap
|
211
228
|
|
212
229
|
# Sets the font associated with the menu item.
|
230
|
+
#
|
213
231
|
# Availability: only available for the WXMSW port.
|
214
232
|
# @param font [Wx::Font,Wx::FontInfo]
|
215
233
|
# @return [void]
|
@@ -224,6 +242,7 @@ module Wx
|
|
224
242
|
alias_method :help=, :set_help
|
225
243
|
|
226
244
|
# Sets the label associated with the menu item.
|
245
|
+
#
|
227
246
|
# Note that if the ID of this menu item corresponds to a stock ID, then it is not necessary to specify a label: wxWidgets will automatically use the stock item label associated with that ID. See the {Wx::constructor} for more info.
|
228
247
|
# The label string for the normal menu items (not separators) may include the accelerator which can be used to activate the menu item from keyboard. An accelerator key can be specified using the ampersand <code>&</code> character. In order to embed an ampersand character in the menu item text, the ampersand must be doubled.
|
229
248
|
# Optionally you can specify also an accelerator string appending a tab character <code>\t</code> followed by a valid key combination (e.g. <code>CTRL+V</code>). Its general syntax is any combination of <code>"CTRL"</code>, <code>"RAWCTRL"</code>, <code>"ALT"</code> and <code>"SHIFT"</code> strings (case doesn't matter) separated by either <code>'-'</code> or <code>'+'</code> characters and followed by the accelerator itself. Notice that CTRL corresponds to the "Ctrl" key on most platforms but not under macOS where it is mapped to "Cmd" key on Mac keyboard. Usually this is exactly what you want in portable code but if you really need to use the (rarely used for this purpose) "Ctrl" key even under Mac, you may use RAWCTRL to prevent this mapping. Under the other platforms RAWCTRL is the same as plain CTRL.
|
@@ -335,6 +354,7 @@ module Wx
|
|
335
354
|
alias_method :item_label=, :set_item_label
|
336
355
|
|
337
356
|
# Sets the width of the menu item checkmark bitmap.
|
357
|
+
#
|
338
358
|
# Availability: only available for the WXMSW port.
|
339
359
|
# @param width [Integer]
|
340
360
|
# @return [void]
|
@@ -355,6 +375,7 @@ module Wx
|
|
355
375
|
alias_method :sub_menu=, :set_sub_menu
|
356
376
|
|
357
377
|
# Sets the text colour associated with the menu item.
|
378
|
+
#
|
358
379
|
# Availability: only available for the WXMSW port.
|
359
380
|
# @param colour [Wx::Colour,String,Symbol]
|
360
381
|
# @return [void]
|
@@ -369,6 +390,7 @@ module Wx
|
|
369
390
|
alias_method :accel=, :set_accel
|
370
391
|
|
371
392
|
# Add an extra accelerator for this menu item.
|
393
|
+
#
|
372
394
|
# Additional accelerators are not shown in the item's label, but still will trigger the menu command when pressed.
|
373
395
|
# They can be useful to let multiple keys be used as accelerators for the same command, e.g. {Wx::KeyCode::K_ADD} and {Wx::KeyCode::K_NUMPAD}_ADD.
|
374
396
|
# Availability: only available for the WXMSW, WXGTK ports.
|
@@ -378,11 +400,13 @@ module Wx
|
|
378
400
|
def add_extra_accel(accel) end
|
379
401
|
|
380
402
|
# Clear the extra accelerators list.
|
403
|
+
#
|
381
404
|
# This doesn't affect the main item accelerator (if any).
|
382
405
|
# @return [void]
|
383
406
|
def clear_extra_accels; end
|
384
407
|
|
385
408
|
# Constructs a {Wx::MenuItem} object.
|
409
|
+
#
|
386
410
|
# Menu items can be standard, or "stock menu items", or custom. For the standard menu items (such as commands to open a file, exit the program and so on, see Stock Items for the full list) it is enough to specify just the stock ID and leave text and helpString empty. Some platforms (currently WXGTK only, and see the remark in {Wx::MenuItem#set_bitmap} documentation) will also show standard bitmaps for stock menu items.
|
387
411
|
# Leaving at least text empty for the stock menu items is actually strongly recommended as they will have appearance and keyboard interface (including standard accelerators) familiar to the user.
|
388
412
|
# For the custom (non-stock) menu items, text must be specified and while helpString may be left empty, it's recommended to pass the item description (which is automatically shown by the library in the status bar when the menu item is selected) in this parameter.
|
@@ -412,6 +436,7 @@ module Wx
|
|
412
436
|
def initialize(parentMenu=nil, id=Wx::StandardID::ID_SEPARATOR, text=(''), helpString=(''), kind=Wx::ItemKind::ITEM_NORMAL, subMenu=nil) end
|
413
437
|
|
414
438
|
# Checks or unchecks the menu item.
|
439
|
+
#
|
415
440
|
# Note that this only works when the item is already appended to a menu.
|
416
441
|
# @param check [Boolean]
|
417
442
|
# @return [void]
|
@@ -423,6 +448,7 @@ module Wx
|
|
423
448
|
def enable(enable=true) end
|
424
449
|
|
425
450
|
# Strips all accelerator characters and mnemonics from the given text.
|
451
|
+
#
|
426
452
|
# For example:
|
427
453
|
#
|
428
454
|
# ```ruby
|
@@ -11,6 +11,7 @@ module Wx
|
|
11
11
|
MESSAGE_BOX_CAPTION_STR = "Message"
|
12
12
|
|
13
13
|
# Show a general purpose message dialog.
|
14
|
+
#
|
14
15
|
# This is a convenient function which is usually used instead of using {Wx::MessageDialog} directly. Notice however that some of the features, such as extended text and custom labels for the message box buttons, are not provided by this function but only by {Wx::MessageDialog}.
|
15
16
|
# The return value is one of: {Wx::YES}, {Wx::NO}, {Wx::CANCEL}, {Wx::OK} or {Wx::HELP} (notice that this return value is <b>different</b> from the return value of {Wx::MessageDialog#show_modal}).
|
16
17
|
# For example:
|
@@ -31,6 +32,7 @@ module Wx
|
|
31
32
|
def self.message_box(message, caption=Wx::MESSAGE_BOX_CAPTION_STR, style=(Wx::OK|Wx::GeometryCentre::CENTRE), parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD) end
|
32
33
|
|
33
34
|
# This class represents a dialog that shows a single or multi-line message, with a choice of OK, Yes, No and Cancel buttons.
|
35
|
+
#
|
34
36
|
# ### Styles
|
35
37
|
#
|
36
38
|
# This class supports the following styles:
|
@@ -81,6 +83,7 @@ module Wx
|
|
81
83
|
class MessageDialog < Dialog
|
82
84
|
|
83
85
|
# Constructor specifying the message box properties.
|
86
|
+
#
|
84
87
|
# Use {Wx::MessageDialog#show_modal} to show the dialog.
|
85
88
|
# style may be a bit list of the identifiers described above.
|
86
89
|
# Notice that not all styles are compatible: only one of {Wx::OK} and {Wx::YES_NO} may be specified (and one of them must be specified) and at most one default button style can be used and it is only valid if the corresponding button is shown in the message box.
|
@@ -93,6 +96,7 @@ module Wx
|
|
93
96
|
def initialize(parent, message, caption=Wx::MESSAGE_BOX_CAPTION_STR, style=(Wx::OK|Wx::GeometryCentre::CENTRE), pos=Wx::DEFAULT_POSITION) end
|
94
97
|
|
95
98
|
# Sets the extended message for the dialog: this message is usually an extension of the short message specified in the constructor or set with {Wx::MessageDialog#set_message}.
|
99
|
+
#
|
96
100
|
# If it is set, the main message appears highlighted if supported and this message appears beneath it in normal font. On the platforms which don't support extended messages, it is simply appended to the normal message with an empty line separating them.
|
97
101
|
# @param extendedMessage [String]
|
98
102
|
# @return [void]
|
@@ -100,6 +104,7 @@ module Wx
|
|
100
104
|
alias_method :extended_message=, :set_extended_message
|
101
105
|
|
102
106
|
# Sets the label for the Help button.
|
107
|
+
#
|
103
108
|
# Please see the remarks in {Wx::MessageDialog#set_yes_no_labels} documentation.
|
104
109
|
# Notice that changing the label of the help button resets its special status (if any, this depends on the platform) and it will be treated just like another button in this case.
|
105
110
|
# @param help [String,Integer]
|
@@ -114,6 +119,7 @@ module Wx
|
|
114
119
|
alias_method :message=, :set_message
|
115
120
|
|
116
121
|
# Overrides the default labels of the OK and Cancel buttons.
|
122
|
+
#
|
117
123
|
# Please see the remarks in {Wx::MessageDialog#set_yes_no_labels} documentation.
|
118
124
|
# @param ok [String,Integer]
|
119
125
|
# @param cancel [String,Integer]
|
@@ -121,6 +127,7 @@ module Wx
|
|
121
127
|
def set_ok_cancel_labels(ok, cancel) end
|
122
128
|
|
123
129
|
# Overrides the default label of the OK button.
|
130
|
+
#
|
124
131
|
# Please see the remarks in {Wx::MessageDialog#set_yes_no_labels} documentation.
|
125
132
|
# @param ok [String,Integer]
|
126
133
|
# @return [Boolean]
|
@@ -128,6 +135,7 @@ module Wx
|
|
128
135
|
alias_method :ok_label=, :set_ok_label
|
129
136
|
|
130
137
|
# Overrides the default labels of the Yes, No and Cancel buttons.
|
138
|
+
#
|
131
139
|
# Please see the remarks in {Wx::MessageDialog#set_yes_no_labels} documentation.
|
132
140
|
# @param yes [String,Integer]
|
133
141
|
# @param no [String,Integer]
|
@@ -136,6 +144,7 @@ module Wx
|
|
136
144
|
def set_yes_no_cancel_labels(yes, no, cancel) end
|
137
145
|
|
138
146
|
# Overrides the default labels of the Yes and No buttons.
|
147
|
+
#
|
139
148
|
# The arguments of this function can be either strings or one of the standard identifiers, such as {Wx::StandardID::ID_APPLY} or {Wx::StandardID::ID_OPEN}. Notice that even if the label is specified as an identifier, the return value of the dialog {Wx::MessageDialog#show_modal} method still remains one of {Wx::StandardID::ID_OK}, {Wx::StandardID::ID_CANCEL}, {Wx::StandardID::ID_YES} or {Wx::StandardID::ID_NO} values, i.e. this identifier changes only the label appearance but not the return code generated by the button. It is possible to mix stock identifiers and string labels in the same function call, for example:
|
140
149
|
# ```ruby
|
141
150
|
# Wx.MessageDialog(...) do |dlg|
|
@@ -159,6 +168,7 @@ module Wx
|
|
159
168
|
def set_yes_no_labels(yes, no) end
|
160
169
|
|
161
170
|
# Shows the dialog, returning one of {Wx::StandardID::ID_OK}, {Wx::StandardID::ID_CANCEL}, {Wx::StandardID::ID_YES}, {Wx::StandardID::ID_NO} or {Wx::StandardID::ID_HELP}.
|
171
|
+
#
|
162
172
|
# Notice that this method returns the identifier of the button which was clicked unlike {message_box} function.
|
163
173
|
# @return [Integer]
|
164
174
|
def show_modal; end
|
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# A miniframe is a frame with a small title bar.
|
10
|
+
#
|
10
11
|
# It is suitable for floating toolbars that must not take up too much screen area.
|
11
12
|
# An example of mini frame can be seen in the Dialogs Sample using the "Mini frame" command of the "Generic dialogs" submenu.
|
12
13
|
# ### Styles
|
@@ -37,7 +38,7 @@ module Wx
|
|
37
38
|
# <b>Remark:</b>
|
38
39
|
# <p>This class has miniframe functionality under Windows and GTK, i.e. the presence of mini frame will not be noted in the task bar and focus behaviour is different. On other platforms, it behaves like a normal frame.
|
39
40
|
# </p>
|
40
|
-
# </div
|
41
|
+
# </div>
|
41
42
|
#
|
42
43
|
# Category: Managed Windows
|
43
44
|
# @see Wx::MDIParentFrame
|
@@ -53,11 +54,12 @@ module Wx
|
|
53
54
|
# @return [Wx::MiniFrame]
|
54
55
|
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CAPTION|Wx::RESIZE_BORDER), name=Wx::FRAME_NAME_STR)
|
55
56
|
# Constructor, creating the window.
|
57
|
+
#
|
56
58
|
# <div class="wxrb-remark">
|
57
59
|
# <b>Remark:</b>
|
58
60
|
# <p>The frame behaves like a normal frame on non-Windows platforms.
|
59
61
|
# </p>
|
60
|
-
# </div
|
62
|
+
# </div>
|
61
63
|
# @see Wx::MiniFrame#create
|
62
64
|
# @param parent [Wx::Window] The window parent. This may be NULL. If it is non-NULL, the frame will always be displayed on top of the parent window on Windows.
|
63
65
|
# @param id [Integer] The window identifier. It may take a value of -1 to indicate a default value.
|
@@ -70,6 +72,7 @@ module Wx
|
|
70
72
|
def initialize(*args) end
|
71
73
|
|
72
74
|
# Used in two-step frame construction.
|
75
|
+
#
|
73
76
|
# See {Wx::MiniFrame#initialize} for further details.
|
74
77
|
# @param parent [Wx::Window]
|
75
78
|
# @param id [Integer]
|
data/lib/wx/doc/gen/mirror_dc.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# {Wx::MirrorDC} is a simple wrapper class which is always associated with a real {Wx::DC} object and either forwards all of its operations to it without changes (no mirroring takes place) or exchanges x and y coordinates which makes it possible to reuse the same code to draw a figure and its mirror i.e.
|
10
|
+
#
|
10
11
|
# reflection related to the diagonal line x == y.
|
11
12
|
#
|
12
13
|
# Category: Device Contexts
|
@@ -47,6 +47,7 @@ module Wx
|
|
47
47
|
end # MouseButton
|
48
48
|
|
49
49
|
# Represents the mouse state.
|
50
|
+
#
|
50
51
|
# This class is used as a base class by {Wx::MouseEvent} and so its methods may be used to obtain information about the mouse state for the mouse events. It also inherits from {Wx::KeyboardState} and so carries information about the keyboard state and not only the mouse one.
|
51
52
|
# This class is implemented entirely inline in <{Wx::/mousestate.h}> and thus has no linking requirements.
|
52
53
|
#
|
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# This class represents a dialog that shows a list of strings, and allows the user to select one or more.
|
10
|
+
#
|
10
11
|
# ### Styles
|
11
12
|
#
|
12
13
|
# This class supports the following styles:
|
@@ -26,11 +27,12 @@ module Wx
|
|
26
27
|
class MultiChoiceDialog < Dialog
|
27
28
|
|
28
29
|
# Constructor taking an array of {Wx::String} choices.
|
30
|
+
#
|
29
31
|
# <div class="wxrb-remark">
|
30
32
|
# <b>Remark:</b>
|
31
33
|
# <p>Use {Wx::MultiChoiceDialog#show_modal} to show the dialog.
|
32
34
|
# </p>
|
33
|
-
# </div
|
35
|
+
# </div>
|
34
36
|
# @param parent [Wx::Window] Parent window.
|
35
37
|
# @param message [String] Message to show on the dialog.
|
36
38
|
# @param caption [String] The dialog caption.
|
@@ -10,6 +10,7 @@ module Wx
|
|
10
10
|
FRAME_SHAPED = 16
|
11
11
|
|
12
12
|
# Common base class for all non-child windows.
|
13
|
+
#
|
13
14
|
# This is the common base class of {Wx::TopLevelWindow} and {Wx::PopupWindow} and is not used directly.
|
14
15
|
# Currently the only additional functionality it provides, compared to base {Wx::Window} class, is the ability to set the window shape.
|
15
16
|
#
|
@@ -17,6 +18,7 @@ module Wx
|
|
17
18
|
|
18
19
|
# @overload set_shape(region)
|
19
20
|
# If the platform supports it, sets the shape of the window to that depicted by region.
|
21
|
+
#
|
20
22
|
# The system will not display or respond to any mouse event for the pixels that lie outside of the region. To reset the window to the normal rectangular shape simply call {Wx::NonOwnedWindow#set_shape} again with an empty {Wx::Region}. Returns true if the operation is successful.
|
21
23
|
# This method is available in this class only since wxWidgets 2.9.3, previous versions only provided it in {Wx::TopLevelWindow}.
|
22
24
|
# Note that windows with non default shape have a fixed size and can't be resized using {Wx::NonOwnedWindow#set_size}.
|
@@ -24,6 +26,7 @@ module Wx
|
|
24
26
|
# @return [Boolean]
|
25
27
|
# @overload set_shape(path)
|
26
28
|
# Set the window shape to the given path.
|
29
|
+
#
|
27
30
|
# Set the window shape to the interior of the given path and also draw the window border along the specified path.
|
28
31
|
# For example, to make a clock-like circular window you could use
|
29
32
|
# ```ruby
|
data/lib/wx/doc/gen/notebook.rb
CHANGED
@@ -59,6 +59,7 @@ module Wx
|
|
59
59
|
EVT_NOTEBOOK_PAGE_CHANGING = 10134
|
60
60
|
|
61
61
|
# This class represents a notebook control, which manages multiple windows with associated tabs.
|
62
|
+
#
|
62
63
|
# To use the class, create a {Wx::Notebook} object and call {Wx::Notebook::AddPage} or {Wx::Notebook#insert_page}, passing a window to be used as the page. Do not explicitly delete the window for a page that is currently managed by {Wx::Notebook}.
|
63
64
|
# <b>{Wx::NotebookPage}</b> is a typedef for {Wx::Window}.
|
64
65
|
# ### Styles
|
@@ -123,6 +124,7 @@ module Wx
|
|
123
124
|
# @return [Wx::Notebook]
|
124
125
|
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::NOTEBOOK_NAME_STR)
|
125
126
|
# Constructs a notebook control.
|
127
|
+
#
|
126
128
|
# Note that sometimes you can reduce flicker by passing the {Wx::CLIP_CHILDREN} window style.
|
127
129
|
# @param parent [Wx::Window] The parent window. Must be non-NULL.
|
128
130
|
# @param id [Integer] The window identifier.
|
@@ -134,6 +136,7 @@ module Wx
|
|
134
136
|
def initialize(*args) end
|
135
137
|
|
136
138
|
# Creates a notebook control.
|
139
|
+
#
|
137
140
|
# See {Wx::Notebook#initialize} for a description of the parameters.
|
138
141
|
# @param parent [Wx::Window]
|
139
142
|
# @param id [Integer]
|
@@ -150,12 +153,14 @@ module Wx
|
|
150
153
|
alias_method :row_count, :get_row_count
|
151
154
|
|
152
155
|
# If running under Windows and themes are enabled for the application, this function returns a suitable colour for painting the background of a notebook page, and can be passed to {Wx::Notebook#set_background_colour}.
|
156
|
+
#
|
153
157
|
# Otherwise, an uninitialised colour will be returned.
|
154
158
|
# @return [Wx::Colour]
|
155
159
|
def get_theme_background_colour; end
|
156
160
|
alias_method :theme_background_colour, :get_theme_background_colour
|
157
161
|
|
158
162
|
# Sets the amount of space around each page's icon and label, in pixels.
|
163
|
+
#
|
159
164
|
# <div class="wxrb-note">
|
160
165
|
# <b>Note:</b>
|
161
166
|
# <p>The vertical padding cannot be changed in WXGTK.
|
@@ -173,6 +178,7 @@ module Wx
|
|
173
178
|
alias_method :page_image, :get_page_image
|
174
179
|
|
175
180
|
# Sets the image index for the given page.
|
181
|
+
#
|
176
182
|
# image is an index into the image list which was set with {Wx::Notebook#set_image_list}.
|
177
183
|
# @param page [Integer]
|
178
184
|
# @param image [Integer]
|
@@ -192,12 +198,14 @@ module Wx
|
|
192
198
|
def set_page_text(page, text) end
|
193
199
|
|
194
200
|
# Returns the currently selected page, or {Wx::NOT_FOUND} if none was selected.
|
201
|
+
#
|
195
202
|
# Note that this method may return either the previously or newly selected page when called from the EVT_BOOKCTRL_PAGE_CHANGED handler depending on the platform and so {Wx::BookCtrlEvent#get_selection} should be used instead in this case.
|
196
203
|
# @return [Integer]
|
197
204
|
def get_selection; end
|
198
205
|
alias_method :selection, :get_selection
|
199
206
|
|
200
207
|
# Sets the selection to the given page, returning the previous selection.
|
208
|
+
#
|
201
209
|
# Notice that the call to this function generates the page changing events, use the {Wx::Notebook#change_selection} function if you don't want these events to be generated.
|
202
210
|
# @see Wx::Notebook#get_selection
|
203
211
|
# @param page [Integer]
|
@@ -206,6 +214,7 @@ module Wx
|
|
206
214
|
alias_method :selection=, :set_selection
|
207
215
|
|
208
216
|
# Changes the selection to the given page, returning the previous selection.
|
217
|
+
#
|
209
218
|
# This function behaves as {Wx::Notebook#set_selection} but does not generate the page changing events.
|
210
219
|
# See User Generated Events vs Programmatically Generated Events for more information.
|
211
220
|
# @param page [Integer]
|
@@ -213,13 +222,14 @@ module Wx
|
|
213
222
|
def change_selection(page) end
|
214
223
|
|
215
224
|
# Inserts a new page at the specified position.
|
225
|
+
#
|
216
226
|
# true if successful, false otherwise.
|
217
227
|
#
|
218
228
|
# <div class="wxrb-remark">
|
219
229
|
# <b>Remark:</b>
|
220
230
|
# <p>Do not delete the page, it will be deleted by the book control.
|
221
231
|
# </p>
|
222
|
-
# </div
|
232
|
+
# </div>
|
223
233
|
# @see Wx::Notebook#add_page
|
224
234
|
# @param index [Integer] Specifies the position for the new page.
|
225
235
|
# @param page [Wx::Window] Specifies the new page.
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# :stopdoc:
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
3
|
+
# generator. Do not alter this file.
|
4
|
+
# :startdoc:
|
5
|
+
|
6
|
+
|
7
|
+
module Wx
|
8
|
+
|
9
|
+
# Bit masks used for numeric validator styles.
|
10
|
+
#
|
11
|
+
# A combination of these flags can be used when creating {Wx::IntegerValidator} and {Wx::FloatingPointValidator} objects and with their SetStyle() methods.
|
12
|
+
#
|
13
|
+
# Category: {Wx::Validators}
|
14
|
+
#
|
15
|
+
# @wxrb_require USE_VALIDATORS
|
16
|
+
class NumValidatorStyle < Wx::Enum
|
17
|
+
|
18
|
+
# Indicates absence of any other flags.
|
19
|
+
#
|
20
|
+
NUM_VAL_DEFAULT = Wx::NumValidatorStyle.new(0)
|
21
|
+
|
22
|
+
# Use thousands separators in the numbers.
|
23
|
+
#
|
24
|
+
NUM_VAL_THOUSANDS_SEPARATOR = Wx::NumValidatorStyle.new(1)
|
25
|
+
|
26
|
+
# Show a value of zero as an empty string.
|
27
|
+
#
|
28
|
+
NUM_VAL_ZERO_AS_BLANK = Wx::NumValidatorStyle.new(2)
|
29
|
+
|
30
|
+
# Remove trailing zeroes from the fractional part of the number.
|
31
|
+
#
|
32
|
+
NUM_VAL_NO_TRAILING_ZEROES = Wx::NumValidatorStyle.new(4)
|
33
|
+
|
34
|
+
end # NumValidatorStyle
|
35
|
+
|
36
|
+
|
37
|
+
end
|
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# Shows a dialog asking the user for numeric input.
|
10
|
+
#
|
10
11
|
# The dialogs title is set to caption, it contains a (possibly) multiline message above the single line prompt and the zone for entering the number.
|
11
12
|
# The number entered must be in the range min to max (both of which should be positive) and value is the initial value of it. If the user enters an invalid value, it is forced to fall into the specified range. If the user cancels the dialog, the function returns -1. If it is important to distinguish between cancelling the dialog and actually entering -1 in it, i.e. if -1 is a valid input value, this convenience function can't be used and {Wx::NumberEntryDialog} should be used directly instead.
|
12
13
|
# Dialog is centered on its parent unless an explicit position is given in pos.
|
@@ -23,6 +24,7 @@ module Wx
|
|
23
24
|
def self.get_number_from_user(message, prompt, caption, value, min=0, max=100, parent=nil, pos=Wx::DEFAULT_POSITION) end
|
24
25
|
|
25
26
|
# This class represents a dialog that requests a numeric input from the user.
|
27
|
+
#
|
26
28
|
# Currently it is implemented as a generic wxWidgets dialog under all platforms.
|
27
29
|
# You can use a convenience {get_number_from_user} function instead of using this dialog.
|
28
30
|
#
|
@@ -35,10 +37,12 @@ module Wx
|
|
35
37
|
|
36
38
|
# @overload initialize()
|
37
39
|
# Default constructor.
|
40
|
+
#
|
38
41
|
# Call {Wx::NumberEntryDialog#create} to really create the dialog later.
|
39
42
|
# @return [Wx::NumberEntryDialog]
|
40
43
|
# @overload initialize(parent, message, prompt, caption, value, min, max, pos=Wx::DEFAULT_POSITION)
|
41
44
|
# Constructor.
|
45
|
+
#
|
42
46
|
# Use {Wx::NumberEntryDialog#show_modal} to show the dialog.
|
43
47
|
# See {Wx::NumberEntryDialog#create} method for parameter description.
|
44
48
|
# @param parent [Wx::Window]
|
data/lib/wx/doc/gen/object.rb
CHANGED
@@ -12,6 +12,7 @@ module Wx
|
|
12
12
|
def self.create_dynamic_object(className) end
|
13
13
|
|
14
14
|
# This is the root class of many of the wxWidgets classes.
|
15
|
+
#
|
15
16
|
# It declares a virtual destructor which ensures that destructors get called for all derived class objects where necessary.
|
16
17
|
# {Wx::Object} is the hub of a dynamic object creation scheme, enabling a program to create instances of a class only knowing its string class name, and to query the class hierarchy.
|
17
18
|
# The class contains optional debugging versions of <b>new</b> and <b>delete</b>, which can help trace memory allocation and deallocation problems.
|
@@ -32,12 +33,14 @@ module Wx
|
|
32
33
|
# @return [Wx::Object]
|
33
34
|
# @overload initialize(other)
|
34
35
|
# Copy ctor.
|
36
|
+
#
|
35
37
|
# Sets the internal {Wx::Object::m_refData} pointer to point to the same instance of the {Wx::ObjectRefData}-derived class pointed by other and increments the refcount of {Wx::Object::m_refData}.
|
36
38
|
# @param other [Wx::Object]
|
37
39
|
# @return [Wx::Object]
|
38
40
|
def initialize(*args) end
|
39
41
|
|
40
42
|
# Returns true if this object has the same data pointer as obj.
|
43
|
+
#
|
41
44
|
# Notice that true is returned if the data pointers are NULL in both objects.
|
42
45
|
# This function only does a shallow comparison, i.e. it doesn't compare the objects pointed to by the data pointers of these objects.
|
43
46
|
# @see Reference Counting
|