Namespace
Methods
#
C
D
G
I
M
S
V
X
Included Modules
Constants
TkCommandNames = ['::iwidgets::entryfield'.freeze].freeze
 
WidgetClassName = 'Entryfield'.freeze
 
Instance Public methods
__validation_class_list()
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 72
def __validation_class_list
  super() << EntryfieldValidate
end
clear()
def validate(cmd = Proc.new, args = nil)
  if cmd.kind_of?(ValidateCmd)
    configure('validate', cmd)
  elsif args
    configure('validate', [cmd, args])
  else
    configure('validate', cmd)
  end
end

def invalid(cmd = Proc.new, args = nil)
  if cmd.kind_of?(ValidateCmd)
    configure('invalid', cmd)
  elsif args
    configure('invalid', [cmd, args])
  else
    configure('invalid', cmd)
  end
end

####################################

# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 101
def clear
  tk_call(@path, 'clear')
  self
end
cursor=(index)
Also aliased as: icursor
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 122
def cursor=(index)
  tk_send_without_enc('icursor', index)
  #self
  index
end
delete(first, last=None)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 106
def delete(first, last=None)
  tk_send_without_enc('delete', first, last)
  self
end
dragto(pos)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 142
def dragto(pos)
  tk_send_without_enc('scan', 'dragto', pos)
  self
end
get()
Alias for: value
icursor(index)
Alias for: cursor=
index(index)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 129
def index(index)
  number(tk_send_without_enc('index', index))
end
insert(pos,text)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 133
def insert(pos,text)
  tk_send_without_enc('insert', pos, _get_eval_enc_str(text))
  self
end
mark(pos)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 138
def mark(pos)
  tk_send_without_enc('scan', 'mark', pos)
  self
end
selection_adjust(index)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 146
def selection_adjust(index)
  tk_send_without_enc('selection', 'adjust', index)
  self
end
selection_clear()
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 150
def selection_clear
  tk_send_without_enc('selection', 'clear')
  self
end
selection_from(index)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 154
def selection_from(index)
  tk_send_without_enc('selection', 'from', index)
  self
end
selection_present()
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 158
def selection_present()
  bool(tk_send_without_enc('selection', 'present'))
end
selection_range(s, e)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 161
def selection_range(s, e)
  tk_send_without_enc('selection', 'range', s, e)
  self
end
selection_to(index)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 165
def selection_to(index)
  tk_send_without_enc('selection', 'to', index)
  self
end
set(val)
Alias for: value=
value()
Also aliased as: get
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 111
def value
  _fromUTF8(tk_send_without_enc('get'))
end
value=(val)
Also aliased as: set
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 114
def value= (val)
  tk_send_without_enc('delete', 0, 'end')
  tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
  val
end
xview(*index)

based on tk/scrollable.rb

# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 171
def xview(*index)
  if index.size == 0
    list(tk_send_without_enc('xview'))
  else
    tk_send_without_enc('xview', *index)
    self
  end
end
xview_moveto(*index)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 179
def xview_moveto(*index)
  xview('moveto', *index)
end
xview_scroll(*index)
# File ext/tk/lib/tkextlib/iwidgets/entryfield.rb, line 182
def xview_scroll(*index)
  xview('scroll', *index)
end