wxruby3 0.9.0-x64-mingw-ucrt → 0.9.2-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/.yardopts +1 -0
- 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/aui/aui_tab_ctrl.rb +18 -0
- data/lib/wx/aui/auinotebook.rb +6 -2
- data/lib/wx/aui/require.rb +1 -0
- data/lib/wx/core/app.rb +2 -2
- data/lib/wx/core/collapsible_pane.rb +1 -1
- data/lib/wx/core/const.rb +83 -0
- data/lib/wx/core/controlwithitems.rb +8 -6
- data/lib/wx/core/events/evt_list.rb +24 -0
- data/lib/wx/core/menu.rb +10 -0
- data/lib/wx/core/notebook.rb +6 -2
- data/lib/wx/core/sizer.rb +11 -0
- data/lib/wx/core/task_bar_button.rb +19 -0
- data/lib/wx/core/textctrl.rb +11 -1
- data/lib/wx/core/{treectrl.rb → tree_ctrl.rb} +31 -12
- data/lib/wx/core/window.rb +10 -0
- data/lib/wx/doc/app.rb +48 -38
- data/lib/wx/doc/art_locator.rb +47 -43
- data/lib/wx/doc/aui/auimanager.rb +16 -8
- data/lib/wx/doc/aui/auinotebook.rb +20 -5
- data/lib/wx/doc/clipboard.rb +11 -7
- data/lib/wx/doc/colour_dialog.rb +14 -10
- data/lib/wx/doc/const.rb +66 -66
- data/lib/wx/doc/controlwithitems.rb +17 -7
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/event.rb +0 -6
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/font.rb +1 -0
- data/lib/wx/doc/functions.rb +9 -9
- data/lib/wx/doc/gc_dc.rb +6 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -2
- data/lib/wx/doc/gen/accelerator.rb +14 -5
- data/lib/wx/doc/gen/accessible.rb +35 -47
- data/lib/wx/doc/gen/activity_indicator.rb +6 -7
- data/lib/wx/doc/gen/animation.rb +7 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +8 -9
- data/lib/wx/doc/gen/any_button.rb +6 -1
- data/lib/wx/doc/gen/app.rb +7 -5
- data/lib/wx/doc/gen/app_traits.rb +27 -10
- data/lib/wx/doc/gen/art_provider.rb +20 -8
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +6 -3
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +11 -7
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +3 -4
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -2
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +8 -3
- data/lib/wx/doc/gen/aui/aui_notebook.rb +14 -8
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +9 -2
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +9 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -8
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +1 -1
- data/lib/wx/doc/gen/aui/event_list.rb +164 -160
- data/lib/wx/doc/gen/banner_window.rb +3 -3
- data/lib/wx/doc/gen/bitmap.rb +34 -17
- data/lib/wx/doc/gen/bitmap_button.rb +13 -10
- data/lib/wx/doc/gen/bitmap_combo_box.rb +16 -12
- data/lib/wx/doc/gen/book_ctrl_base.rb +16 -4
- data/lib/wx/doc/gen/book_ctrl_event.rb +7 -3
- data/lib/wx/doc/gen/box_sizer.rb +0 -1
- data/lib/wx/doc/gen/brush.rb +5 -2
- data/lib/wx/doc/gen/busy_info.rb +2 -2
- data/lib/wx/doc/gen/button.rb +25 -13
- data/lib/wx/doc/gen/calculate_layout_event.rb +1 -3
- data/lib/wx/doc/gen/calendar_ctrl.rb +18 -15
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
- data/lib/wx/doc/gen/calendar_event.rb +4 -3
- data/lib/wx/doc/gen/caret.rb +0 -1
- data/lib/wx/doc/gen/check_box.rb +9 -9
- data/lib/wx/doc/gen/check_list_box.rb +8 -9
- data/lib/wx/doc/gen/choice.rb +18 -11
- data/lib/wx/doc/gen/choicebook.rb +6 -7
- data/lib/wx/doc/gen/client_dc.rb +5 -2
- data/lib/wx/doc/gen/clipboard.rb +7 -3
- data/lib/wx/doc/gen/collapsible_pane.rb +8 -9
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -3
- data/lib/wx/doc/gen/colour.rb +8 -4
- data/lib/wx/doc/gen/colour_dialog.rb +6 -8
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/colour_picker_event.rb +4 -5
- data/lib/wx/doc/gen/combo_box.rb +20 -17
- data/lib/wx/doc/gen/combo_ctrl.rb +100 -37
- data/lib/wx/doc/gen/command_link_button.rb +6 -7
- data/lib/wx/doc/gen/context_help_button.rb +7 -3
- data/lib/wx/doc/gen/control.rb +12 -10
- data/lib/wx/doc/gen/control_with_items.rb +0 -1
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/cursor.rb +6 -8
- data/lib/wx/doc/gen/data_format.rb +6 -1
- data/lib/wx/doc/gen/data_object.rb +16 -14
- data/lib/wx/doc/gen/date_event.rb +2 -2
- data/lib/wx/doc/gen/date_picker_ctrl.rb +14 -10
- data/lib/wx/doc/gen/dc.rb +155 -37
- data/lib/wx/doc/gen/defs.rb +54 -54
- data/lib/wx/doc/gen/dial_up_event.rb +41 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +137 -0
- data/lib/wx/doc/gen/dialog.rb +35 -15
- data/lib/wx/doc/gen/dir_dialog.rb +17 -5
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/drag_drop.rb +11 -10
- data/lib/wx/doc/gen/drag_image.rb +6 -2
- data/lib/wx/doc/gen/editable_list_box.rb +4 -4
- data/lib/wx/doc/gen/event.rb +42 -20
- data/lib/wx/doc/gen/event_blocker.rb +1 -3
- data/lib/wx/doc/gen/event_list.rb +1656 -1624
- data/lib/wx/doc/gen/events.rb +170 -181
- data/lib/wx/doc/gen/evt_handler.rb +11 -3
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_ctrl.rb +209 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +79 -0
- data/lib/wx/doc/gen/file_dialog.rb +32 -15
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +7 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +2 -3
- data/lib/wx/doc/gen/file_dir_picker_event.rb +3 -4
- data/lib/wx/doc/gen/file_picker_ctrl.rb +10 -11
- data/lib/wx/doc/gen/file_system.rb +38 -15
- data/lib/wx/doc/gen/find_dialog_event.rb +5 -4
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -1
- data/lib/wx/doc/gen/font.rb +31 -20
- data/lib/wx/doc/gen/font_data.rb +3 -4
- data/lib/wx/doc/gen/font_dialog.rb +1 -2
- data/lib/wx/doc/gen/font_picker_ctrl.rb +8 -9
- data/lib/wx/doc/gen/font_picker_event.rb +2 -3
- data/lib/wx/doc/gen/frame.rb +60 -19
- data/lib/wx/doc/gen/fs_file.rb +17 -10
- data/lib/wx/doc/gen/gauge.rb +13 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +0 -1
- data/lib/wx/doc/gen/gcdc.rb +1 -2
- data/lib/wx/doc/gen/gdi_common.rb +30 -11
- data/lib/wx/doc/gen/gdi_object.rb +0 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +8 -9
- data/lib/wx/doc/gen/graphics_context.rb +59 -12
- data/lib/wx/doc/gen/graphics_object.rb +11 -6
- data/lib/wx/doc/gen/grid/event_list.rb +168 -164
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
- 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 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -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 +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +1 -1
- 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 +29 -7
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_size_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_string_table.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_table_message.rb +1 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -6
- data/lib/wx/doc/gen/grid_sizer.rb +0 -1
- data/lib/wx/doc/gen/gui_event_loop.rb +2 -4
- data/lib/wx/doc/gen/header_ctrl.rb +7 -14
- data/lib/wx/doc/gen/header_ctrl_event.rb +1 -3
- data/lib/wx/doc/gen/help_controller.rb +42 -3
- data/lib/wx/doc/gen/help_provider.rb +12 -3
- data/lib/wx/doc/gen/html/event_list.rb +41 -37
- data/lib/wx/doc/gen/html/html_cell.rb +23 -6
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +8 -3
- data/lib/wx/doc/gen/html/html_help_controller.rb +47 -2
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -1
- data/lib/wx/doc/gen/html/html_help_window.rb +1 -1
- data/lib/wx/doc/gen/html/html_link_event.rb +2 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +10 -12
- data/lib/wx/doc/gen/html/html_printout.rb +1 -2
- data/lib/wx/doc/gen/html/html_window.rb +13 -7
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +9 -9
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -3
- data/lib/wx/doc/gen/icon.rb +5 -29
- data/lib/wx/doc/gen/icon_location.rb +0 -1
- data/lib/wx/doc/gen/image.rb +83 -17
- data/lib/wx/doc/gen/image_list.rb +15 -6
- data/lib/wx/doc/gen/info_bar.rb +2 -2
- data/lib/wx/doc/gen/keyboard_state.rb +0 -1
- data/lib/wx/doc/gen/list_box.rb +33 -21
- data/lib/wx/doc/gen/list_ctrl.rb +79 -32
- data/lib/wx/doc/gen/list_event.rb +3 -4
- data/lib/wx/doc/gen/listbook.rb +6 -7
- data/lib/wx/doc/gen/locale.rb +46 -4
- data/lib/wx/doc/gen/log.rb +16 -12
- data/lib/wx/doc/gen/mdi_client_window.rb +8 -2
- data/lib/wx/doc/gen/mdi_frame.rb +32 -11
- data/lib/wx/doc/gen/media_ctrl.rb +28 -20
- data/lib/wx/doc/gen/media_event.rb +5 -4
- data/lib/wx/doc/gen/memory_dc.rb +6 -6
- data/lib/wx/doc/gen/menu.rb +37 -23
- data/lib/wx/doc/gen/menu_bar.rb +52 -12
- data/lib/wx/doc/gen/menu_item.rb +117 -95
- data/lib/wx/doc/gen/message_dialog.rb +7 -8
- data/lib/wx/doc/gen/mini_frame.rb +13 -7
- data/lib/wx/doc/gen/mirror_dc.rb +0 -2
- data/lib/wx/doc/gen/mouse_state.rb +0 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/non_owned_window.rb +1 -1
- data/lib/wx/doc/gen/notebook.rb +19 -11
- data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
- data/lib/wx/doc/gen/object.rb +0 -1
- data/lib/wx/doc/gen/paint_dc.rb +0 -1
- data/lib/wx/doc/gen/palette.rb +0 -1
- data/lib/wx/doc/gen/panel.rb +19 -10
- data/lib/wx/doc/gen/pen.rb +17 -8
- data/lib/wx/doc/gen/pg/event_list.rb +97 -93
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +9 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +8 -5
- data/lib/wx/doc/gen/pg/pg_editor.rb +115 -16
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +1 -2
- data/lib/wx/doc/gen/pg/pg_properties.rb +515 -83
- data/lib/wx/doc/gen/pg/pg_property.rb +296 -69
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +9 -4
- data/lib/wx/doc/gen/pg/property_grid.rb +83 -22
- data/lib/wx/doc/gen/pg/property_grid_event.rb +31 -9
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +212 -34
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +42 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +26 -8
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +13 -4
- data/lib/wx/doc/gen/picker_base.rb +12 -5
- data/lib/wx/doc/gen/platform_info.rb +4 -9
- data/lib/wx/doc/gen/popup_window.rb +2 -5
- data/lib/wx/doc/gen/progress_dialog.rb +1 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +15 -5
- data/lib/wx/doc/gen/prt/event_list.rb +8 -4
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +2 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +4 -1
- data/lib/wx/doc/gen/prt/print_data.rb +4 -3
- data/lib/wx/doc/gen/prt/print_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/printer.rb +50 -11
- data/lib/wx/doc/gen/prt/printer_dc.rb +1 -1
- data/lib/wx/doc/gen/query_layout_info_event.rb +1 -3
- data/lib/wx/doc/gen/radio_box.rb +13 -14
- data/lib/wx/doc/gen/radio_button.rb +15 -11
- data/lib/wx/doc/gen/rbn/event_list.rb +127 -123
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +19 -3
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +3 -4
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +18 -6
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +1 -2
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +5 -4
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +3 -4
- data/lib/wx/doc/gen/rearrange_list.rb +5 -6
- data/lib/wx/doc/gen/region.rb +75 -17
- data/lib/wx/doc/gen/region_iterator.rb +0 -1
- data/lib/wx/doc/gen/rtc/event_list.rb +116 -112
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -9
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -2
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +3 -6
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +12 -9
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +3 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +3 -5
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +4 -5
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -3
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +2 -4
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +28 -23
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +7 -11
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +14 -14
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -4
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +3 -4
- data/lib/wx/doc/gen/sash_event.rb +12 -4
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -6
- data/lib/wx/doc/gen/sash_window.rb +4 -5
- data/lib/wx/doc/gen/screen_dc.rb +0 -1
- data/lib/wx/doc/gen/scroll_bar.rb +21 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +34 -12
- data/lib/wx/doc/gen/scrolled_control.rb +34 -12
- data/lib/wx/doc/gen/scrolled_window.rb +34 -12
- data/lib/wx/doc/gen/search_ctrl.rb +10 -11
- data/lib/wx/doc/gen/simplebook.rb +1 -1
- data/lib/wx/doc/gen/single_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/sizer.rb +12 -7
- data/lib/wx/doc/gen/sizer_item.rb +5 -2
- data/lib/wx/doc/gen/slider.rb +29 -19
- data/lib/wx/doc/gen/spin_button.rb +16 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +24 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +6 -7
- data/lib/wx/doc/gen/spin_double_event.rb +3 -4
- data/lib/wx/doc/gen/spin_event.rb +3 -3
- data/lib/wx/doc/gen/splash_screen.rb +1 -2
- data/lib/wx/doc/gen/splitter_event.rb +3 -4
- data/lib/wx/doc/gen/splitter_window.rb +78 -20
- data/lib/wx/doc/gen/static_bitmap.rb +12 -7
- data/lib/wx/doc/gen/static_box.rb +13 -11
- data/lib/wx/doc/gen/static_box_sizer.rb +0 -2
- data/lib/wx/doc/gen/static_line.rb +5 -6
- data/lib/wx/doc/gen/static_text.rb +7 -8
- data/lib/wx/doc/gen/status_bar.rb +21 -11
- data/lib/wx/doc/gen/stc/event_list.rb +212 -208
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +41 -15
- data/lib/wx/doc/gen/stc/styled_text_event.rb +5 -6
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -1
- data/lib/wx/doc/gen/svg_file_dc.rb +7 -8
- data/lib/wx/doc/gen/system_options.rb +6 -6
- data/lib/wx/doc/gen/system_settings.rb +2 -3
- data/lib/wx/doc/gen/task_bar_button.rb +312 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +21 -8
- data/lib/wx/doc/gen/task_bar_icon_event.rb +4 -3
- data/lib/wx/doc/gen/text_attr.rb +20 -5
- data/lib/wx/doc/gen/text_ctrl.rb +92 -27
- data/lib/wx/doc/gen/text_entry.rb +31 -11
- data/lib/wx/doc/gen/text_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/text_validator.rb +43 -10
- data/lib/wx/doc/gen/time_picker_ctrl.rb +7 -8
- data/lib/wx/doc/gen/timer.rb +6 -2
- data/lib/wx/doc/gen/timer_event.rb +1 -2
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +7 -8
- data/lib/wx/doc/gen/tool_bar.rb +99 -26
- data/lib/wx/doc/gen/tool_tip.rb +35 -5
- data/lib/wx/doc/gen/toolbook.rb +3 -4
- data/lib/wx/doc/gen/top_level_window.rb +71 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +42 -18
- data/lib/wx/doc/gen/tree_event.rb +3 -4
- data/lib/wx/doc/gen/treebook.rb +7 -4
- data/lib/wx/doc/gen/ui_action_simulator.rb +6 -2
- data/lib/wx/doc/gen/utils.rb +39 -7
- data/lib/wx/doc/gen/v_list_box.rb +8 -4
- data/lib/wx/doc/gen/v_scrolled_window.rb +8 -6
- data/lib/wx/doc/gen/validator.rb +1 -1
- data/lib/wx/doc/gen/variant.rb +1 -0
- data/lib/wx/doc/gen/window.rb +200 -50
- data/lib/wx/doc/gen/window_dc.rb +0 -1
- data/lib/wx/doc/gen/window_disabler.rb +5 -2
- data/lib/wx/doc/gen/with_images.rb +6 -1
- data/lib/wx/doc/gen/wizard.rb +4 -4
- data/lib/wx/doc/gen/wizard_event.rb +3 -4
- data/lib/wx/doc/gen/wizard_page.rb +2 -2
- data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +0 -1
- data/lib/wx/doc/gen/xml_node.rb +19 -4
- data/lib/wx/doc/gen/xml_resource.rb +18 -5
- data/lib/wx/doc/graphics_context.rb +1 -0
- data/lib/wx/doc/grid/grid.rb +22 -1
- data/lib/wx/doc/help_controller.rb +11 -7
- data/lib/wx/doc/html/html_help_controller.rb +12 -4
- data/lib/wx/doc/list_ctrl.rb +33 -29
- data/lib/wx/doc/menu.rb +20 -0
- data/lib/wx/doc/notebook.rb +21 -0
- data/lib/wx/doc/pg/events.rb +13 -9
- data/lib/wx/doc/pg/pg_property.rb +18 -0
- data/lib/wx/doc/progress_dialog.rb +36 -32
- data/lib/wx/doc/prt/page_setup_dialog.rb +20 -12
- data/lib/wx/doc/prt/print_data.rb +13 -5
- data/lib/wx/doc/prt/print_dialog.rb +31 -23
- data/lib/wx/doc/prt/printer.rb +20 -12
- data/lib/wx/doc/radio_box.rb +19 -15
- data/lib/wx/doc/rbn/ribbon_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_gallery.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +13 -5
- data/lib/wx/doc/region_iterator.rb +32 -28
- data/lib/wx/doc/rtc/rich_text_composite_object.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_ctrl.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_paragraph.rb +24 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +27 -19
- data/lib/wx/doc/rtc/richtext_printing.rb +17 -9
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +17 -9
- data/lib/wx/doc/sizer.rb +20 -0
- data/lib/wx/doc/stc/styled_text_ctrl.rb +24 -0
- data/lib/wx/doc/stream.rb +39 -35
- data/lib/wx/doc/system_settings.rb +30 -26
- data/lib/wx/doc/text_validator.rb +12 -8
- data/lib/wx/doc/textctrl.rb +16 -0
- data/lib/wx/doc/tree_ctrl.rb +95 -0
- data/lib/wx/doc/treebook.rb +9 -5
- data/lib/wx/doc/v_list_box.rb +9 -5
- data/lib/wx/doc/variant.rb +164 -160
- data/lib/wx/doc/window.rb +57 -42
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- data/lib/wx/keyword_defs.rb +43 -6
- data/lib/wx/pg/pg_property.rb +22 -0
- data/lib/wx/rtc/require.rb +3 -0
- data/lib/wx/rtc/rich_text_composite_object.rb +25 -0
- data/lib/wx/rtc/rich_text_ctrl.rb +25 -0
- data/lib/wx/rtc/rich_text_paragraph.rb +25 -0
- data/lib/wx/stc/require.rb +1 -0
- data/lib/wx/stc/styled_text_ctrl.rb +25 -0
- 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/linux.rb +0 -3
- data/rakelib/lib/config/macosx.rb +1 -1
- data/rakelib/lib/config/mingw.rb +1 -1
- data/rakelib/lib/config/unixish.rb +1 -1
- data/rakelib/lib/config.rb +14 -4
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +74 -2
- data/rakelib/yard/templates/default/fulldoc/html/full_list.erb +38 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +39 -0
- data/rakelib/yard/templates/default/tags/html/wxrb_require.erb +10 -0
- data/rakelib/yard/templates/default/tags/setup.rb +16 -0
- data/rakelib/yard/yard-custom-templates.rb +3 -0
- data/samples/text/richtext.rb +0 -30
- data/samples/treectrl/treectrl.rb +1 -1
- data/tests/media/beep_lo.wav +0 -0
- data/tests/test_app_exit_exception.rb +36 -0
- data/tests/test_app_init_exception.rb +20 -0
- data/tests/test_book_controls.rb +29 -0
- data/tests/test_exceptions.rb +41 -0
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_media_ctrl.rb +38 -0
- data/tests/test_menu.rb +69 -0
- data/tests/test_pg.rb +27 -0
- data/tests/test_richtext.rb +45 -0
- data/tests/test_sizer.rb +59 -0
- data/tests/test_std_controls.rb +78 -1
- data/tests/test_styled_text_ctrl.rb +46 -0
- data/tests/test_tree_ctrl.rb +138 -0
- data/tests/test_window.rb +12 -0
- data/tests/testapp_noframe.rb +1 -1
- metadata +38 -3
data/lib/wx/doc/gen/menu.rb
CHANGED
@@ -9,23 +9,27 @@ module Wx
|
|
9
9
|
# A menu is a popup (or pull down) list of items, one of which may be selected before the menu goes away (clicking elsewhere dismisses the menu).
|
10
10
|
# Menus may be used to construct either menu bars or popup menus.
|
11
11
|
# A menu item has an integer ID associated with it which can be used to identify the selection, or to change the menu item in some way. A menu item with a special identifier {Wx::StandardID::ID_SEPARATOR} is a separator item and doesn't have an associated command but just makes a separator line appear in the menu.
|
12
|
-
#
|
12
|
+
#
|
13
|
+
# <div class="wxrb-note">
|
14
|
+
# <b>Note:</b>
|
15
|
+
# <p>Please note that {Wx::StandardID::ID_ABOUT} and {Wx::StandardID::ID_EXIT} are predefined by wxWidgets and have a special meaning since entries using these IDs will be taken out of the normal menus under macOS and will be inserted into the system menu (following the appropriate macOS interface guideline).
|
16
|
+
# </p>
|
17
|
+
# </div>
|
13
18
|
#
|
14
19
|
# Menu items may be either normal items, check items or radio items. Normal items don't have any special properties while the check items have a boolean flag associated to them and they show a checkmark in the menu when the flag is set. wxWidgets automatically toggles the flag value when the item is clicked and its value may be retrieved using either {Wx::Menu#is_checked} method of {Wx::Menu} or {Wx::MenuBar} itself or by using {Wx::Event::IsChecked} when you get the menu notification for the item in question.
|
15
20
|
# The radio items are similar to the check items except that all the other items in the same radio group are unchecked when a radio item is checked. The radio group is formed by a contiguous range of radio items, i.e. it starts at the first item of this kind and ends with the first item of a different kind (or the end of the menu). Notice that because the radio groups are defined in terms of the item positions inserting or removing the items in the menu containing the radio items risks to not work correctly.
|
16
21
|
#
|
17
|
-
#
|
22
|
+
# ## Allocation strategy
|
18
23
|
#
|
19
24
|
# All menus must be created on the <b>heap</b> because all menus attached to a menubar or to another menu will be deleted by their parent when it is deleted. The only exception to this rule are the popup menus (i.e. menus used with {Wx::Window#popup_menu}) as wxWidgets does not destroy them to allow reusing the same menu more than once. But the exception applies only to the menus themselves and not to any submenus of popup menus which are still destroyed by wxWidgets as usual and so must be heap-allocated.
|
20
25
|
# As the frame menubar is deleted by the frame itself, it means that normally all menus used are deleted automatically.
|
21
26
|
#
|
22
|
-
#
|
27
|
+
# ## Event handling
|
23
28
|
#
|
24
29
|
# Event handlers for the commands generated by the menu items can be connected directly to the menu object itself using {Wx::EvtHandler#bind}. If this menu is a submenu of another one, the events from its items can also be processed in the parent menu and so on, recursively.
|
25
30
|
# If the menu is part of a menu bar, then events can also be handled in {Wx::MenuBar} object.
|
26
31
|
# Finally, menu events can also be handled in the associated window, which is either the {Wx::Frame} associated with the menu bar this menu belongs to or the window for which {Wx::Window#popup_menu} was called for the popup menus.
|
27
32
|
# See Dynamic Event Handling for how to bind event handlers to the various objects.
|
28
|
-
# ===
|
29
33
|
#
|
30
34
|
# Category: {Wx::Menus}
|
31
35
|
# @see Wx::MenuBar
|
@@ -34,6 +38,7 @@ module Wx
|
|
34
38
|
# @see wxFileHistory (most recently used files menu)
|
35
39
|
#
|
36
40
|
#
|
41
|
+
# @wxrb_require USE_MENUS
|
37
42
|
class Menu < EvtHandler
|
38
43
|
|
39
44
|
# Returns the list of items in the menu.
|
@@ -48,7 +53,7 @@ module Wx
|
|
48
53
|
# @overload initialize(title, style=0)
|
49
54
|
# Constructs a {Wx::Menu} object with a title.
|
50
55
|
# @param title [String] Title at the top of the menu (not always supported).
|
51
|
-
# @param style [Integer] If set to {Wx::MENU_TEAROFF}, the menu will be detachable (
|
56
|
+
# @param style [Integer] If set to {Wx::MENU_TEAROFF}, the menu will be detachable (WXGTK and {Wx::QT} only).
|
52
57
|
# @return [Wx::Menu]
|
53
58
|
def initialize(*args) end
|
54
59
|
|
@@ -63,7 +68,11 @@ module Wx
|
|
63
68
|
# file_menu.append(Wx::ID_NEW, "", "Creates a new XYZ document")
|
64
69
|
# ```
|
65
70
|
#
|
66
|
-
#
|
71
|
+
# <div class="wxrb-remark">
|
72
|
+
# <b>Remark:</b>
|
73
|
+
# <p>This command can be used after the menu has been shown, as well as on initial creation of a menu or menubar.
|
74
|
+
# </p>
|
75
|
+
# </div>>
|
67
76
|
# @see Wx::Menu#append_separator
|
68
77
|
# @see Wx::Menu#append_check_item
|
69
78
|
# @see Wx::Menu#append_radio_item
|
@@ -82,7 +91,11 @@ module Wx
|
|
82
91
|
# Adds a menu item object.
|
83
92
|
# This is the most generic variant of {Wx::Menu#append} method because it may be used for both items (including separators) and submenus and because you can also specify various extra properties of a menu item this way, such as bitmaps and fonts.
|
84
93
|
#
|
85
|
-
#
|
94
|
+
# <div class="wxrb-remark">
|
95
|
+
# <b>Remark:</b>
|
96
|
+
# <p>See the remarks for the other {Wx::Menu#append} overloads.
|
97
|
+
# </p>
|
98
|
+
# </div>>
|
86
99
|
# @see Wx::Menu#append_separator
|
87
100
|
# @see Wx::Menu#append_check_item
|
88
101
|
# @see Wx::Menu#append_radio_item
|
@@ -108,7 +121,12 @@ module Wx
|
|
108
121
|
|
109
122
|
# Adds a radio item to the end of the menu.
|
110
123
|
# All consequent radio items form a group and when an item in the group is checked, all the others are automatically unchecked.
|
111
|
-
#
|
124
|
+
#
|
125
|
+
# <div class="wxrb-note">
|
126
|
+
# <b>Note:</b>
|
127
|
+
# <p>Radio items are not supported under {Wx::Motif}.
|
128
|
+
# </p>
|
129
|
+
# </div>
|
112
130
|
# @see Wx::Menu#append
|
113
131
|
# @see Wx::Menu#insert_radio_item
|
114
132
|
# @param id [Integer]
|
@@ -135,7 +153,7 @@ module Wx
|
|
135
153
|
def append_sub_menu(submenu, text, help=('')) end
|
136
154
|
|
137
155
|
# Inserts a break in a menu, causing the next appended item to appear in a new column.
|
138
|
-
# This function only actually inserts a break in
|
156
|
+
# This function only actually inserts a break in WXMSW and does nothing under the other platforms.
|
139
157
|
# @return [void]
|
140
158
|
def break_; end
|
141
159
|
|
@@ -203,7 +221,11 @@ module Wx
|
|
203
221
|
# Finds the menu id for a menu item string.
|
204
222
|
# Menu item identifier, or {Wx::NOT_FOUND} if none is found.
|
205
223
|
#
|
206
|
-
#
|
224
|
+
# <div class="wxrb-remark">
|
225
|
+
# <b>Remark:</b>
|
226
|
+
# <p>Any special menu codes are stripped out of source and target strings before matching.
|
227
|
+
# </p>
|
228
|
+
# </div>>
|
207
229
|
# @param itemString [String] Menu item string to find.
|
208
230
|
# @return [Integer]
|
209
231
|
# @overload find_item(id, menu=nil)
|
@@ -336,18 +358,6 @@ module Wx
|
|
336
358
|
def is_enabled(id) end
|
337
359
|
alias_method :enabled?, :is_enabled
|
338
360
|
|
339
|
-
# Allows handling native MSW menu command messages.
|
340
|
-
# This is a low-level function which allows handling MSW WM_COMMAND messages generated when menu items are selected. It is particularly useful for the popup menus, as specific handling can then be defined in a {Wx::Menu}-derived class directly, instead of in the {Wx::Window}-derived owner class.
|
341
|
-
# The base class version of this function generates {Wx::EVT_MENU} command events.
|
342
|
-
#
|
343
|
-
# true if the command was handled, false otherwise.
|
344
|
-
#
|
345
|
-
# Availability: only available for the wxMSW port. {Wx::msw}
|
346
|
-
# @param param [WXUINT] The MSW command parameter.
|
347
|
-
# @param id [WXWORD] The id of the command.
|
348
|
-
# @return [Boolean]
|
349
|
-
def msw_command(param, id) end
|
350
|
-
|
351
361
|
# @overload prepend(item)
|
352
362
|
# Inserts the given item at position 0, i.e. before all the other existing items.
|
353
363
|
#
|
@@ -438,7 +448,11 @@ module Wx
|
|
438
448
|
def set_label(id, label) end
|
439
449
|
|
440
450
|
# Sets the title of the menu.
|
441
|
-
#
|
451
|
+
# <div class="wxrb-remark">
|
452
|
+
# <b>Remark:</b>
|
453
|
+
# <p>Notice that you can only call this method directly for the popup menus, to change the title of a menu that is part of a menu bar you need to use {Wx::MenuBar#set_label_top}.
|
454
|
+
# </p>
|
455
|
+
# </div>>
|
442
456
|
# @see Wx::Menu#get_title
|
443
457
|
# @param title [String] The title to set.
|
444
458
|
# @return [void]
|
data/lib/wx/doc/gen/menu_bar.rb
CHANGED
@@ -7,21 +7,25 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# A menu bar is a series of menus accessible from the top of a frame.
|
10
|
-
#
|
10
|
+
# <div class="wxrb-remark">
|
11
|
+
# <b>Remark:</b>
|
12
|
+
# <p>To respond to a menu selection, provide a handler for EVT_MENU, in the frame that contains the menu bar.
|
13
|
+
# </p>
|
14
|
+
# </div>>
|
11
15
|
#
|
12
16
|
# If you have a toolbar which uses the same identifiers as your EVT_MENU entries, events from the toolbar will also be processed by your EVT_MENU event handlers.
|
13
17
|
# Tip: under Windows, if you discover that menu shortcuts (for example, Alt-F to show the file menu) are not working, check any EVT_CHAR events you are handling in child windows. If you are not calling event.Skip() for events that you don't process in these event handlers, menu shortcuts may cease to work.
|
14
|
-
# ===
|
15
18
|
#
|
16
19
|
# Category: {Wx::Menus}
|
17
20
|
# @see Wx::Menu
|
18
21
|
# @see Events and Event Handling
|
19
22
|
#
|
20
23
|
#
|
24
|
+
# @wxrb_require USE_MENUBAR
|
21
25
|
class MenuBar < Window
|
22
26
|
|
23
27
|
# Construct an empty menu bar.
|
24
|
-
# @param style [Integer] If {Wx::MB_DOCKABLE} the menu bar can be detached (
|
28
|
+
# @param style [Integer] If {Wx::MB_DOCKABLE} the menu bar can be detached (WXGTK only).
|
25
29
|
# @return [Wx::MenuBar]
|
26
30
|
def initialize(style=0) end
|
27
31
|
|
@@ -34,14 +38,22 @@ module Wx
|
|
34
38
|
def append(menu, title) end
|
35
39
|
|
36
40
|
# Checks or unchecks a menu item.
|
37
|
-
#
|
41
|
+
# <div class="wxrb-remark">
|
42
|
+
# <b>Remark:</b>
|
43
|
+
# <p>Only use this when the menu bar has been associated with a frame; otherwise, use the {Wx::Menu} equivalent call.
|
44
|
+
# </p>
|
45
|
+
# </div>>
|
38
46
|
# @param id [Integer] The menu item identifier.
|
39
47
|
# @param check [Boolean] If true, checks the menu item, otherwise the item is unchecked.
|
40
48
|
# @return [void]
|
41
49
|
def check(id, check) end
|
42
50
|
|
43
51
|
# Enables or disables (greys out) a menu item.
|
44
|
-
#
|
52
|
+
# <div class="wxrb-remark">
|
53
|
+
# <b>Remark:</b>
|
54
|
+
# <p>Only use this when the menu bar has been associated with a frame; otherwise, use the {Wx::Menu} equivalent call.
|
55
|
+
# </p>
|
56
|
+
# </div>>
|
45
57
|
# @param id [Integer] The menu item identifier.
|
46
58
|
# @param enable [Boolean] true to enable the item, false to disable it.
|
47
59
|
# @return [void]
|
@@ -54,7 +66,11 @@ module Wx
|
|
54
66
|
alias_method :enabled_top?, :is_enabled_top
|
55
67
|
|
56
68
|
# Enables or disables a whole menu.
|
57
|
-
#
|
69
|
+
# <div class="wxrb-remark">
|
70
|
+
# <b>Remark:</b>
|
71
|
+
# <p>Only use this when the menu bar has been associated with a frame.
|
72
|
+
# </p>
|
73
|
+
# </div>>
|
58
74
|
# @param pos [Integer] The position of the menu, starting from zero.
|
59
75
|
# @param enable [Boolean] true to enable the menu, false to disable it.
|
60
76
|
# @return [void]
|
@@ -76,7 +92,11 @@ module Wx
|
|
76
92
|
# Finds the menu item id for a menu name/menu item string pair.
|
77
93
|
# The menu item identifier, or {Wx::NOT_FOUND} if none was found.
|
78
94
|
#
|
79
|
-
#
|
95
|
+
# <div class="wxrb-remark">
|
96
|
+
# <b>Remark:</b>
|
97
|
+
# <p>Any special menu codes are stripped out of source and target strings before matching.
|
98
|
+
# </p>
|
99
|
+
# </div>>
|
80
100
|
# @param menuString [String] Menu title to find.
|
81
101
|
# @param itemString [String] Item to find.
|
82
102
|
# @return [Integer]
|
@@ -93,7 +113,11 @@ module Wx
|
|
93
113
|
# Gets the label associated with a menu item.
|
94
114
|
# The menu item label, or the empty string if the item was not found.
|
95
115
|
#
|
96
|
-
#
|
116
|
+
# <div class="wxrb-remark">
|
117
|
+
# <b>Remark:</b>
|
118
|
+
# <p>Use only after the menubar has been associated with a frame.
|
119
|
+
# </p>
|
120
|
+
# </div>>
|
97
121
|
# @param id [Integer] The menu item identifier.
|
98
122
|
# @return [String]
|
99
123
|
def get_label(id) end
|
@@ -115,7 +139,11 @@ module Wx
|
|
115
139
|
#
|
116
140
|
# The menu label, or the empty string if the menu was not found.
|
117
141
|
#
|
118
|
-
#
|
142
|
+
# <div class="wxrb-remark">
|
143
|
+
# <b>Remark:</b>
|
144
|
+
# <p>Use only after the menubar has been associated with a frame.
|
145
|
+
# </p>
|
146
|
+
# </div>>
|
119
147
|
# @see Wx::MenuBar#get_menu_label_text
|
120
148
|
# @see Wx::MenuBar#set_menu_label
|
121
149
|
# @param pos [Integer] Position of the menu on the menu bar, starting from zero.
|
@@ -128,7 +156,11 @@ module Wx
|
|
128
156
|
#
|
129
157
|
# The menu label, or the empty string if the menu was not found.
|
130
158
|
#
|
131
|
-
#
|
159
|
+
# <div class="wxrb-remark">
|
160
|
+
# <b>Remark:</b>
|
161
|
+
# <p>Use only after the menubar has been associated with a frame.
|
162
|
+
# </p>
|
163
|
+
# </div>>
|
132
164
|
# @see Wx::MenuBar#get_menu_label
|
133
165
|
# @see Wx::MenuBar#set_menu_label
|
134
166
|
# @param pos [Integer] Position of the menu on the menu bar, starting from zero.
|
@@ -187,7 +219,11 @@ module Wx
|
|
187
219
|
def set_help_string(id, helpString) end
|
188
220
|
|
189
221
|
# Sets the label of a menu item.
|
190
|
-
#
|
222
|
+
# <div class="wxrb-remark">
|
223
|
+
# <b>Remark:</b>
|
224
|
+
# <p>Use only after the menubar has been associated with a frame.
|
225
|
+
# </p>
|
226
|
+
# </div>>
|
191
227
|
# @see Wx::MenuBar#get_label
|
192
228
|
# @param id [Integer] Menu item identifier.
|
193
229
|
# @param label [String] Menu item label.
|
@@ -195,7 +231,11 @@ module Wx
|
|
195
231
|
def set_label(id, label) end
|
196
232
|
|
197
233
|
# Sets the label of a top-level menu.
|
198
|
-
#
|
234
|
+
# <div class="wxrb-remark">
|
235
|
+
# <b>Remark:</b>
|
236
|
+
# <p>Use only after the menubar has been associated with a frame.
|
237
|
+
# </p>
|
238
|
+
# </div>>
|
199
239
|
# @param pos [Integer] The position of a menu on the menu bar, starting from zero.
|
200
240
|
# @param label [String] The menu label.
|
201
241
|
# @return [void]
|
data/lib/wx/doc/gen/menu_item.rb
CHANGED
@@ -9,7 +9,7 @@ module Wx
|
|
9
9
|
# A menu item represents an item in a menu.
|
10
10
|
# 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
11
|
# Also please note that the methods related to fonts and bitmaps are currently only implemented for Windows, Mac and GTK+.
|
12
|
-
#
|
12
|
+
# ### Events emitted by this class
|
13
13
|
#
|
14
14
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::MenuEvent} events.
|
15
15
|
# Event handler methods for events emitted by this class:
|
@@ -26,18 +26,18 @@ module Wx
|
|
26
26
|
#
|
27
27
|
# - {Wx::EvtHandler#evt_menu_highlight_all}(meth = nil, &block): A menu item has been highlighted, i.e. the currently selected menu item has changed. This type of event is sent as {Wx::MenuEvent}.
|
28
28
|
#
|
29
|
-
# ===
|
30
|
-
#
|
31
29
|
# Category: {Wx::Menus}
|
32
30
|
# @see Wx::MenuBar
|
33
31
|
# @see Wx::Menu
|
34
32
|
#
|
35
33
|
#
|
34
|
+
# @wxrb_require USE_MENUS
|
36
35
|
class MenuItem < Object
|
37
36
|
|
38
37
|
# Returns the background colour associated with the menu item.
|
39
|
-
# Availability: only available for the
|
38
|
+
# Availability: only available for the WXMSW port.
|
40
39
|
# @return [Wx::Colour]
|
40
|
+
# @wxrb_require WXMSW
|
41
41
|
def get_background_colour; end
|
42
42
|
alias_method :background_colour, :get_background_colour
|
43
43
|
|
@@ -55,14 +55,16 @@ module Wx
|
|
55
55
|
alias_method :bitmap_bundle, :get_bitmap_bundle
|
56
56
|
|
57
57
|
# Returns the bitmap used for disabled items.
|
58
|
-
# Availability: only available for the
|
58
|
+
# Availability: only available for the WXMSW port.
|
59
59
|
# @return [Wx::Bitmap]
|
60
|
+
# @wxrb_require WXMSW
|
60
61
|
def get_disabled_bitmap; end
|
61
62
|
alias_method :disabled_bitmap, :get_disabled_bitmap
|
62
63
|
|
63
64
|
# Returns the font associated with the menu item.
|
64
|
-
# Availability: only available for the
|
65
|
+
# Availability: only available for the WXMSW port.
|
65
66
|
# @return [Wx::Font]
|
67
|
+
# @wxrb_require WXMSW
|
66
68
|
def get_font; end
|
67
69
|
alias_method :font, :get_font
|
68
70
|
|
@@ -98,8 +100,9 @@ module Wx
|
|
98
100
|
alias_method :kind, :get_kind
|
99
101
|
|
100
102
|
# Gets the width of the menu item checkmark bitmap.
|
101
|
-
# Availability: only available for the
|
103
|
+
# Availability: only available for the WXMSW port.
|
102
104
|
# @return [Integer]
|
105
|
+
# @wxrb_require WXMSW
|
103
106
|
def get_margin_width; end
|
104
107
|
alias_method :margin_width, :get_margin_width
|
105
108
|
|
@@ -114,13 +117,15 @@ module Wx
|
|
114
117
|
alias_method :sub_menu, :get_sub_menu
|
115
118
|
|
116
119
|
# Returns the text colour associated with the menu item.
|
117
|
-
# Availability: only available for the
|
120
|
+
# Availability: only available for the WXMSW port.
|
118
121
|
# @return [Wx::Colour]
|
122
|
+
# @wxrb_require WXMSW
|
119
123
|
def get_text_colour; end
|
120
124
|
alias_method :text_colour, :get_text_colour
|
121
125
|
|
122
126
|
# Get our accelerator or NULL (caller must delete the pointer)
|
123
127
|
# @return [Wx::AcceleratorEntry]
|
128
|
+
# @wxrb_require USE_ACCEL
|
124
129
|
def get_accel; end
|
125
130
|
alias_method :accel, :get_accel
|
126
131
|
|
@@ -162,9 +167,10 @@ module Wx
|
|
162
167
|
alias_method :sub_menu?, :is_sub_menu
|
163
168
|
|
164
169
|
# Sets the background colour associated with the menu item.
|
165
|
-
# Availability: only available for the
|
170
|
+
# Availability: only available for the WXMSW port.
|
166
171
|
# @param colour [Wx::Colour,String,Symbol]
|
167
172
|
# @return [void]
|
173
|
+
# @wxrb_require WXMSW
|
168
174
|
def set_background_colour(colour) end
|
169
175
|
alias_method :background_colour=, :set_background_colour
|
170
176
|
|
@@ -177,33 +183,37 @@ module Wx
|
|
177
183
|
# Sets the checked or unchecked bitmap for the menu item.
|
178
184
|
# It is equivalent to {Wx::MenuItem#set_bitmaps(bmp,wxNullBitmap)} if checked is true or SetBitmaps({Wx::NULL_BITMAP}, bmp) otherwise.
|
179
185
|
# 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.
|
180
|
-
# Availability: only available for the
|
186
|
+
# Availability: only available for the WXMSW port.
|
181
187
|
# @param bmp [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
182
188
|
# @param checked [Boolean]
|
183
189
|
# @return [void]
|
190
|
+
# @wxrb_require WXMSW
|
184
191
|
def set_bitmap(*args) end
|
185
192
|
alias_method :bitmap=, :set_bitmap
|
186
193
|
|
187
194
|
# Sets the checked/unchecked bitmaps for the menu item.
|
188
195
|
# The first bitmap is also used as the single bitmap for uncheckable menu items.
|
189
|
-
# Availability: only available for the
|
196
|
+
# Availability: only available for the WXMSW port.
|
190
197
|
# @param checked [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
191
198
|
# @param unchecked [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
192
199
|
# @return [void]
|
200
|
+
# @wxrb_require WXMSW
|
193
201
|
def set_bitmaps(checked, unchecked=Wx::NULL_BITMAP) end
|
194
202
|
alias_method :bitmaps=, :set_bitmaps
|
195
203
|
|
196
204
|
# Sets the to be used for disabled menu items.
|
197
|
-
# Availability: only available for the
|
205
|
+
# Availability: only available for the WXMSW port.
|
198
206
|
# @param disabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
199
207
|
# @return [void]
|
208
|
+
# @wxrb_require WXMSW
|
200
209
|
def set_disabled_bitmap(disabled) end
|
201
210
|
alias_method :disabled_bitmap=, :set_disabled_bitmap
|
202
211
|
|
203
212
|
# Sets the font associated with the menu item.
|
204
|
-
# Availability: only available for the
|
213
|
+
# Availability: only available for the WXMSW port.
|
205
214
|
# @param font [Wx::Font,Wx::FontInfo]
|
206
215
|
# @return [void]
|
216
|
+
# @wxrb_require WXMSW
|
207
217
|
def set_font(font) end
|
208
218
|
alias_method :font=, :set_font
|
209
219
|
|
@@ -219,65 +229,65 @@ module Wx
|
|
219
229
|
# 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.
|
220
230
|
# The accelerator may be any alphanumeric character, any function key (from F1 to F12), any numpad digit key using KP_ prefix (i.e. from KP_0 to KP_9) or one of the special strings listed below (again, case doesn't matter) corresponding to the specified key code:
|
221
231
|
#
|
222
|
-
# - Del or Delete: {Wx::K_DELETE}
|
223
|
-
# - Back: {Wx::K_BACK}
|
224
|
-
# - Ins or Insert: {Wx::K_INSERT}
|
225
|
-
# - Enter or Return: {Wx::K_RETURN}
|
226
|
-
# - PgUp or PageUp: {Wx::K_PAGEUP}
|
227
|
-
# - PgDn or PageDown: {Wx::K_PAGEDOWN}
|
228
|
-
# - Left: {Wx::K_LEFT}
|
229
|
-
# - Right: {Wx::K_RIGHT}
|
230
|
-
# - Up: {Wx::K_UP}
|
231
|
-
# - Down: {Wx::K_DOWN}
|
232
|
-
# - Home: {Wx::K_HOME}
|
233
|
-
# - End: {Wx::K_END}
|
234
|
-
# - Space: {Wx::K_SPACE}
|
235
|
-
# - Tab: {Wx::K_TAB}
|
236
|
-
# - Esc or Escape: {Wx::K_ESCAPE}
|
237
|
-
# - Cancel: {Wx::K_CANCEL}
|
238
|
-
# - Clear: {Wx::K_CLEAR}
|
239
|
-
# - Menu: {Wx::K_MENU}
|
240
|
-
# - Pause: {Wx::K_PAUSE}
|
241
|
-
# - Capital: {Wx::K_CAPITAL}
|
242
|
-
# - Select: {Wx::K_SELECT}
|
243
|
-
# - Print: {Wx::K_PRINT}
|
244
|
-
# - Execute: {Wx::K_EXECUTE}
|
245
|
-
# - Snapshot: {Wx::K_SNAPSHOT}
|
246
|
-
# - Help: {Wx::K_HELP}
|
247
|
-
# - Add: {Wx::K_ADD}
|
248
|
-
# - Separator: {Wx::K_SEPARATOR}
|
249
|
-
# - Subtract: {Wx::K_SUBTRACT}
|
250
|
-
# - Decimal: {Wx::K_DECIMAL}
|
251
|
-
# - Divide: {Wx::K_DIVIDE}
|
252
|
-
# - Num_lock: {Wx::K_NUMLOCK}
|
253
|
-
# - Scroll_lock: {Wx::K_SCROLL}
|
254
|
-
# - KP_Space: {Wx::K_NUMPAD}_SPACE
|
255
|
-
# - KP_Tab: {Wx::K_NUMPAD}_TAB
|
256
|
-
# - KP_Enter: {Wx::K_NUMPAD}_ENTER
|
257
|
-
# - KP_Home: {Wx::K_NUMPAD}_HOME
|
258
|
-
# - KP_Left: {Wx::K_NUMPAD}_LEFT
|
259
|
-
# - KP_Up: {Wx::K_NUMPAD}_UP
|
260
|
-
# - KP_Right: {Wx::K_NUMPAD}_RIGHT
|
261
|
-
# - KP_Down: {Wx::K_NUMPAD}_DOWN
|
262
|
-
# - KP_PageUp: {Wx::K_NUMPAD}_PAGEUP
|
263
|
-
# - KP_PageDown: {Wx::K_NUMPAD}_PAGEDOWN
|
264
|
-
# - KP_Prior: {Wx::K_NUMPAD}_PAGEUP
|
265
|
-
# - KP_Next: {Wx::K_NUMPAD}_PAGEDOWN
|
266
|
-
# - KP_End: {Wx::K_NUMPAD}_END
|
267
|
-
# - KP_Begin: {Wx::K_NUMPAD}_BEGIN
|
268
|
-
# - KP_Insert: {Wx::K_NUMPAD}_INSERT
|
269
|
-
# - KP_Delete: {Wx::K_NUMPAD}_DELETE
|
270
|
-
# - KP_Equal: {Wx::K_NUMPAD}_EQUAL
|
271
|
-
# - KP_Multiply: {Wx::K_NUMPAD}_MULTIPLY
|
272
|
-
# - KP_Add: {Wx::K_NUMPAD}_ADD
|
273
|
-
# - KP_Separator: {Wx::K_NUMPAD}_SEPARATOR
|
274
|
-
# - KP_Subtract: {Wx::K_NUMPAD}_SUBTRACT
|
275
|
-
# - KP_Decimal: {Wx::K_NUMPAD}_DECIMAL
|
276
|
-
# - KP_Divide: {Wx::K_NUMPAD}_DIVIDE
|
277
|
-
# - Windows_Left: {Wx::K_WINDOWS}_LEFT
|
278
|
-
# - Windows_Right: {Wx::K_WINDOWS}_RIGHT
|
279
|
-
# - Windows_Menu: {Wx::K_WINDOWS}_MENU
|
280
|
-
# - Command: {Wx::K_COMMAND}
|
232
|
+
# - Del or Delete: {Wx::KeyCode::K_DELETE}
|
233
|
+
# - Back: {Wx::KeyCode::K_BACK}
|
234
|
+
# - Ins or Insert: {Wx::KeyCode::K_INSERT}
|
235
|
+
# - Enter or Return: {Wx::KeyCode::K_RETURN}
|
236
|
+
# - PgUp or PageUp: {Wx::KeyCode::K_PAGEUP}
|
237
|
+
# - PgDn or PageDown: {Wx::KeyCode::K_PAGEDOWN}
|
238
|
+
# - Left: {Wx::KeyCode::K_LEFT}
|
239
|
+
# - Right: {Wx::KeyCode::K_RIGHT}
|
240
|
+
# - Up: {Wx::KeyCode::K_UP}
|
241
|
+
# - Down: {Wx::KeyCode::K_DOWN}
|
242
|
+
# - Home: {Wx::KeyCode::K_HOME}
|
243
|
+
# - End: {Wx::KeyCode::K_END}
|
244
|
+
# - Space: {Wx::KeyCode::K_SPACE}
|
245
|
+
# - Tab: {Wx::KeyCode::K_TAB}
|
246
|
+
# - Esc or Escape: {Wx::KeyCode::K_ESCAPE}
|
247
|
+
# - Cancel: {Wx::KeyCode::K_CANCEL}
|
248
|
+
# - Clear: {Wx::KeyCode::K_CLEAR}
|
249
|
+
# - Menu: {Wx::KeyCode::K_MENU}
|
250
|
+
# - Pause: {Wx::KeyCode::K_PAUSE}
|
251
|
+
# - Capital: {Wx::KeyCode::K_CAPITAL}
|
252
|
+
# - Select: {Wx::KeyCode::K_SELECT}
|
253
|
+
# - Print: {Wx::KeyCode::K_PRINT}
|
254
|
+
# - Execute: {Wx::KeyCode::K_EXECUTE}
|
255
|
+
# - Snapshot: {Wx::KeyCode::K_SNAPSHOT}
|
256
|
+
# - Help: {Wx::KeyCode::K_HELP}
|
257
|
+
# - Add: {Wx::KeyCode::K_ADD}
|
258
|
+
# - Separator: {Wx::KeyCode::K_SEPARATOR}
|
259
|
+
# - Subtract: {Wx::KeyCode::K_SUBTRACT}
|
260
|
+
# - Decimal: {Wx::KeyCode::K_DECIMAL}
|
261
|
+
# - Divide: {Wx::KeyCode::K_DIVIDE}
|
262
|
+
# - Num_lock: {Wx::KeyCode::K_NUMLOCK}
|
263
|
+
# - Scroll_lock: {Wx::KeyCode::K_SCROLL}
|
264
|
+
# - KP_Space: {Wx::KeyCode::K_NUMPAD}_SPACE
|
265
|
+
# - KP_Tab: {Wx::KeyCode::K_NUMPAD}_TAB
|
266
|
+
# - KP_Enter: {Wx::KeyCode::K_NUMPAD}_ENTER
|
267
|
+
# - KP_Home: {Wx::KeyCode::K_NUMPAD}_HOME
|
268
|
+
# - KP_Left: {Wx::KeyCode::K_NUMPAD}_LEFT
|
269
|
+
# - KP_Up: {Wx::KeyCode::K_NUMPAD}_UP
|
270
|
+
# - KP_Right: {Wx::KeyCode::K_NUMPAD}_RIGHT
|
271
|
+
# - KP_Down: {Wx::KeyCode::K_NUMPAD}_DOWN
|
272
|
+
# - KP_PageUp: {Wx::KeyCode::K_NUMPAD}_PAGEUP
|
273
|
+
# - KP_PageDown: {Wx::KeyCode::K_NUMPAD}_PAGEDOWN
|
274
|
+
# - KP_Prior: {Wx::KeyCode::K_NUMPAD}_PAGEUP
|
275
|
+
# - KP_Next: {Wx::KeyCode::K_NUMPAD}_PAGEDOWN
|
276
|
+
# - KP_End: {Wx::KeyCode::K_NUMPAD}_END
|
277
|
+
# - KP_Begin: {Wx::KeyCode::K_NUMPAD}_BEGIN
|
278
|
+
# - KP_Insert: {Wx::KeyCode::K_NUMPAD}_INSERT
|
279
|
+
# - KP_Delete: {Wx::KeyCode::K_NUMPAD}_DELETE
|
280
|
+
# - KP_Equal: {Wx::KeyCode::K_NUMPAD}_EQUAL
|
281
|
+
# - KP_Multiply: {Wx::KeyCode::K_NUMPAD}_MULTIPLY
|
282
|
+
# - KP_Add: {Wx::KeyCode::K_NUMPAD}_ADD
|
283
|
+
# - KP_Separator: {Wx::KeyCode::K_NUMPAD}_SEPARATOR
|
284
|
+
# - KP_Subtract: {Wx::KeyCode::K_NUMPAD}_SUBTRACT
|
285
|
+
# - KP_Decimal: {Wx::KeyCode::K_NUMPAD}_DECIMAL
|
286
|
+
# - KP_Divide: {Wx::KeyCode::K_NUMPAD}_DIVIDE
|
287
|
+
# - Windows_Left: {Wx::KeyCode::K_WINDOWS}_LEFT
|
288
|
+
# - Windows_Right: {Wx::KeyCode::K_WINDOWS}_RIGHT
|
289
|
+
# - Windows_Menu: {Wx::KeyCode::K_WINDOWS}_MENU
|
290
|
+
# - Command: {Wx::KeyCode::K_COMMAND}
|
281
291
|
#
|
282
292
|
# Examples:
|
283
293
|
#
|
@@ -288,26 +298,35 @@ module Wx
|
|
288
298
|
# @my_menu_item4.set_item_label("Item with &accelerator")
|
289
299
|
# ```
|
290
300
|
#
|
291
|
-
#
|
301
|
+
# <div class="wxrb-note">
|
302
|
+
# <b>Note:</b>
|
303
|
+
# <p>In WXGTK using <code>"SHIFT"</code> with non-alphabetic characters currently doesn't work, even in combination with other modifiers, due to GTK+ limitation. E.g. <code>Shift+Ctrl+A</code> works but <code>Shift+Ctrl+1</code> or <code>Shift+/</code> do not, so avoid using accelerators of this form in portable code.
|
304
|
+
# </p>
|
305
|
+
# </div>
|
306
|
+
#
|
307
|
+
# <div class="wxrb-note">
|
308
|
+
# <b>Note:</b>
|
309
|
+
# <p>In {Wx::GTk}, the left/right/up/down arrow keys do not work as accelerator keys for a menu item unless a modifier key is used. Additionally, the following keycodes are not supported as menu accelerator keys:
|
292
310
|
#
|
293
|
-
#
|
311
|
+
# - {Wx::KeyCode::K_COMMAND}/{Wx::KeyCode::K_CONTROL}
|
312
|
+
# - {Wx::KeyCode::K_SHIFT}
|
313
|
+
# - {Wx::KeyCode::K_ALT}
|
314
|
+
# - {Wx::KeyCode::K_SCROLL}
|
315
|
+
# - {Wx::KeyCode::K_CAPITAL}
|
316
|
+
# - {Wx::KeyCode::K_NUMLOCK}
|
317
|
+
# - {Wx::KeyCode::K_NUMPAD}_TAB
|
318
|
+
# - {Wx::KeyCode::K_TAB}
|
319
|
+
# - {Wx::KeyCode::K_WINDOWS}_LEFT
|
320
|
+
# - {Wx::KeyCode::K_WINDOWS}_RIGHT
|
321
|
+
# - {Wx::KeyCode::K_ADD}
|
322
|
+
# - {Wx::KeyCode::K_SEPARATOR}
|
323
|
+
# - {Wx::KeyCode::K_SUBTRACT}
|
324
|
+
# - {Wx::KeyCode::K_DECIMAL}
|
325
|
+
# - {Wx::KeyCode::K_DIVIDE}
|
326
|
+
# - {Wx::KeyCode::K_SNAPSHOT}
|
294
327
|
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
# - {Wx::K_ALT}
|
298
|
-
# - {Wx::K_SCROLL}
|
299
|
-
# - {Wx::K_CAPITAL}
|
300
|
-
# - {Wx::K_NUMLOCK}
|
301
|
-
# - {Wx::K_NUMPAD}_TAB
|
302
|
-
# - {Wx::K_TAB}
|
303
|
-
# - {Wx::K_WINDOWS}_LEFT
|
304
|
-
# - {Wx::K_WINDOWS}_RIGHT
|
305
|
-
# - {Wx::K_ADD}
|
306
|
-
# - {Wx::K_SEPARATOR}
|
307
|
-
# - {Wx::K_SUBTRACT}
|
308
|
-
# - {Wx::K_DECIMAL}
|
309
|
-
# - {Wx::K_DIVIDE}
|
310
|
-
# - {Wx::K_SNAPSHOT}
|
328
|
+
# </p>
|
329
|
+
# </div>
|
311
330
|
# @see Wx::MenuItem#get_item_label
|
312
331
|
# @see Wx::MenuItem#get_item_label_text
|
313
332
|
# @param label [String]
|
@@ -316,9 +335,10 @@ module Wx
|
|
316
335
|
alias_method :item_label=, :set_item_label
|
317
336
|
|
318
337
|
# Sets the width of the menu item checkmark bitmap.
|
319
|
-
# Availability: only available for the
|
338
|
+
# Availability: only available for the WXMSW port.
|
320
339
|
# @param width [Integer]
|
321
340
|
# @return [void]
|
341
|
+
# @wxrb_require WXMSW
|
322
342
|
def set_margin_width(width) end
|
323
343
|
alias_method :margin_width=, :set_margin_width
|
324
344
|
|
@@ -335,9 +355,10 @@ module Wx
|
|
335
355
|
alias_method :sub_menu=, :set_sub_menu
|
336
356
|
|
337
357
|
# Sets the text colour associated with the menu item.
|
338
|
-
# Availability: only available for the
|
358
|
+
# Availability: only available for the WXMSW port.
|
339
359
|
# @param colour [Wx::Colour,String,Symbol]
|
340
360
|
# @return [void]
|
361
|
+
# @wxrb_require WXMSW
|
341
362
|
def set_text_colour(colour) end
|
342
363
|
alias_method :text_colour=, :set_text_colour
|
343
364
|
|
@@ -349,10 +370,11 @@ module Wx
|
|
349
370
|
|
350
371
|
# Add an extra accelerator for this menu item.
|
351
372
|
# Additional accelerators are not shown in the item's label, but still will trigger the menu command when pressed.
|
352
|
-
# They can be useful to let multiple keys be used as accelerators for the same command, e.g. {Wx::K_ADD} and {Wx::K_NUMPAD}_ADD.
|
353
|
-
# Availability: only available for the
|
373
|
+
# 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
|
+
# Availability: only available for the WXMSW, WXGTK ports.
|
354
375
|
# @param accel [Wx::AcceleratorEntry]
|
355
376
|
# @return [void]
|
377
|
+
# @wxrb_require WXMSW|WXGTK
|
356
378
|
def add_extra_accel(accel) end
|
357
379
|
|
358
380
|
# Clear the extra accelerators list.
|
@@ -361,7 +383,7 @@ module Wx
|
|
361
383
|
def clear_extra_accels; end
|
362
384
|
|
363
385
|
# Constructs a {Wx::MenuItem} object.
|
364
|
-
# 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
|
386
|
+
# 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.
|
365
387
|
# 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.
|
366
388
|
# 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.
|
367
389
|
# Finally note that you can e.g. use a stock menu label without using its stock help string:
|