Class Tk::Iwidgets::Entryfield
In: tk/lib/tkextlib/iwidgets/entryfield.rb
Parent: Tk::Iwidgets::Labeledwidget

Methods

Included Modules

Tk::ValidateConfigure

Classes and Modules

Class Tk::Iwidgets::Entryfield::EntryfieldValidate

Constants

TkCommandNames = ['::iwidgets::entryfield'.freeze].freeze
WidgetClassName = 'Entryfield'.freeze

Public Instance methods

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 53
  def __validation_class_list
    super() << EntryfieldValidate
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 82
  def clear
    tk_call(@path, 'clear')
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 103
  def cursor=(index)
    tk_send_without_enc('icursor', index)
    #self
    index
  end

[Source]

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

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 123
  def dragto(pos)
    tk_send_without_enc('scan', 'dragto', pos)
    self
  end
get()

Alias for value

icursor(index)

Alias for cursor=

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 110
  def index(index)
    number(tk_send_without_enc('index', index))
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 114
  def insert(pos,text)
    tk_send_without_enc('insert', pos, _get_eval_enc_str(text))
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 119
  def mark(pos)
    tk_send_without_enc('scan', 'mark', pos)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 127
  def selection_adjust(index)
    tk_send_without_enc('selection', 'adjust', index)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 131
  def selection_clear
    tk_send_without_enc('selection', 'clear')
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 135
  def selection_from(index)
    tk_send_without_enc('selection', 'from', index)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 139
  def selection_present()
    bool(tk_send_without_enc('selection', 'present'))
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 142
  def selection_range(s, e)
    tk_send_without_enc('selection', 'range', s, e)
    self
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 146
  def selection_to(index)
    tk_send_without_enc('selection', 'to', index)
    self
  end
set(val)

Alias for value=

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 92
  def value
    _fromUTF8(tk_send_without_enc('get'))
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 95
  def value= (val)
    tk_send_without_enc('delete', 0, 'end')
    tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
    val
  end

based on tk/scrollable.rb

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 152
  def xview(*index)
    if index.size == 0
      list(tk_send_without_enc('xview'))
    else
      tk_send_without_enc('xview', *index)
      self
    end
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 160
  def xview_moveto(*index)
    xview('moveto', *index)
  end

[Source]

# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 163
  def xview_scroll(*index)
    xview('scroll', *index)
  end

[Validate]