Sha256: c3afaeb26f09f03f6ebb8bc51cddb1620bed6464deb74274b5272cb1d0cf6248
Contents?: true
Size: 998 Bytes
Versions: 20
Compression:
Stored size: 998 Bytes
Contents
--- :wxScrolled.DoPrepareDC: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby class MyWindow < Wx::ScrolledWindow def on_event(event) Wx::ClientDC.draw_on(self) do |dc| do_prepare_dc(dc) dc.set_pen(Wx::BLACK_PEN) pos = event.position if xpos > -1 && ypos > -1 && event.dragging dc.draw_line(xpos, ypos, pos.x, pos.y) end xpos = pos.x ypos = pos.y end end end ``` :wxScrolled.SetScrollbars: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby window.set_scrollbars(20, 20, 50, 50) ```
Version data entries
20 entries across 20 versions & 1 rubygems