Sha256: dede78d6282b05ccf66204acb85182add7059b7bd23d46dd50deff9d63cb3a82

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

module VER
  class Buffer
    class Frame < Tk::Frame
      attr_reader :buffer
      attr_accessor :shown
      alias shown? shown

      def initialize(parent, buffer, options = {})
        @buffer = buffer
        options = options.dup
        options[:takefocus] ||= false
        # options[:style] ||= VER.obtain_style_name('Buffer', 'TFrame')
        # options[:padding] ||= 2
        # options[:relief] ||= :solid
        super(parent, options)

        @shown = true

        bind('<FocusIn>'){ buffer.focus; Tk.callback_break }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ver-2010.08 lib/ver/buffer/frame.rb