Sha256: 2c15960f7fe8ea583e2f61b67ed878be553c750a035dc86add76c223fed38303

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# 
# Some parts are
# Copyright 2004-2007, wxRuby development team
# released under the MIT-like wxRuby2 license

require_relative './controlwithitems'

module Wx

  class ComboBox

    # redefine #clear method to take care of client data and to call the proper #clear_items method
    # (not the #clear method inherited from the TextEntry mixin)
    wx_clear = instance_method :clear_items
    define_method :clear do
      wx_clear.bind(self).call
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/core/combobox.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/core/combobox.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/core/combobox.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/core/combobox.rb