Sha256: 16441c7400f27a6ac3835b8722465e9cf58b7473edd631a31cae82b67d9b1edd
Contents?: true
Size: 1.35 KB
Versions: 22
Compression:
Stored size: 1.35 KB
Contents
--- :wxMenuItem.SetItemLabel: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby @my_menu_item.set_item_label("My &item\tCTRL+I") @my_menu_item2.set_item_label("Clean && build\tF7") @my_menu_item3.set_item_label("Simple item") @my_menu_item4.set_item_label("Item with &accelerator") ``` :wxMenuItem.wxMenuItem: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby # use all stock properties: helpMenu.append(wxID_ABOUT) # use the stock label and the stock accelerator but not the stock help string: helpMenu.append(Wx::ID_ABOUT, "", "My custom help string") # use all stock properties except for the bitmap: mymenu = Wx::MenuItem.new(helpMenu, Wx::ID_ABOUT) mymenu.set_bitmap(Wx::ArtProvider.get_bitmap(Wx::ART_WARNING)) helpMenu.append(mymenu) ``` :wxMenuItem.GetLabelText: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby Wx::MenuItem.get_label_text("&Hello\tCtrl-h") ```
Version data entries
22 entries across 22 versions & 1 rubygems