Sha256: 6015f858839d8bb260ca93422835dea8868b39202b15d6b22800813ec975cd63
Contents?: true
Size: 748 Bytes
Versions: 8
Compression:
Stored size: 748 Bytes
Contents
--- :wxPersistentComboBox: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby # Suppose you need to ask the user to select their favourite Linux # distribution, for some reason: combo = Wx::ComboBox.new(self, Wx::ID_ANY) unless Wx.persistent_register_and_restore(combo, 'distribution') # Seed it with some default contents. combo.append("Debian") combo.append("Fedora") combo.append("Ubuntu") end # Optionally, you might want to restore the last used entry: combo.set_selection(0) ```
Version data entries
8 entries across 8 versions & 1 rubygems