Class Tk::Iwidgets::Selectiondialog
In: tk/lib/tkextlib/iwidgets/selectiondialog.rb
Parent: Tk::Iwidgets::Dialog

Methods

Constants

TkCommandNames = ['::iwidgets::selectiondialog'.freeze].freeze
WidgetClassName = 'Selectiondialog'.freeze

Public Instance methods

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 21
  def child_site
    window(tk_call(@path, 'childsite'))
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 25
  def clear_items
    tk_call(@path, 'clear', 'items')
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 30
  def clear_selection
    tk_call(@path, 'clear', 'selection')
    self
  end

based on TkListbox ( and TkTextWin )

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 53
  def curselection
    list(tk_send_without_enc('curselection'))
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 56
  def delete(first, last=None)
    tk_send_without_enc('delete', first, last)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 35
  def get
    tk_call(@path, 'get')
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 60
  def index(idx)
    tk_send_without_enc('index', idx).to_i
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 39
  def insert_items(idx, *args)
    tk_call(@path, 'insert', 'items', idx, *args)
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 43
  def insert_selection(pos, text)
    tk_call(@path, 'insert', 'selection', pos, text)
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 63
  def nearest(y)
    tk_send_without_enc('nearest', y).to_i
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 70
  def scan_dragto(x, y)
    tk_send_without_enc('scan', 'dragto', x, y)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 66
  def scan_mark(x, y)
    tk_send_without_enc('scan', 'mark', x, y)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 47
  def select_item
    tk_call(@path, 'selectitem')
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 74
  def selection_anchor(index)
    tk_send_without_enc('selection', 'anchor', index)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 78
  def selection_clear(first, last=None)
    tk_send_without_enc('selection', 'clear', first, last)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 82
  def selection_includes(index)
    bool(tk_send_without_enc('selection', 'includes', index))
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 85
  def selection_set(first, last=None)
    tk_send_without_enc('selection', 'set', first, last)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/selectiondialog.rb, line 89
  def size
    tk_send_without_enc('size').to_i
  end

[Validate]