Sha256: e19cbb181fd86886b70d863a33b037230212afb4232a764022f91bcc26d1a876

Contents?: true

Size: 910 Bytes

Versions: 5

Compression:

Stored size: 910 Bytes

Contents

###
# wxRuby3 wxWidgets interface director
# Copyright (c) M.J.N. Corino, The Netherlands
###

require_relative './window'

module WXRuby3

  class Director

    class ScrollBar < Window

      def setup
        super
      end

      def process(gendoc: false)
        defmod = super
        # fix documentation errors for scroll events
        def_item = defmod.find_item('wxScrollBar')
        if def_item
          def_item.event_types.each do |evt_spec|
            case evt_spec.first
            when 'EVT_COMMAND_SCROLL_THUMBRELEASE', 'EVT_COMMAND_SCROLL_CHANGED'
              if evt_spec[2] == 0
                evt_spec[2] = 1       # incorrectly documented without 'id' argument
                evt_spec[4] = true    # ignore extracted docs
              end
            end
          end
        end
        defmod
      end
    end # class ScrollBar

  end # class Director

end # module WXRuby3

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 rakelib/lib/director/scroll_bar.rb
wxruby3-0.9.0.pre.rc.2 rakelib/lib/director/scroll_bar.rb
wxruby3-0.9.0.pre.rc.1 rakelib/lib/director/scroll_bar.rb
wxruby3-0.9.0.pre.beta.14 rakelib/lib/director/scroll_bar.rb
wxruby3-0.9.0.pre.beta.13 rakelib/lib/director/scroll_bar.rb