# class Tk::Iwidgets::Promptdialog

### Constants

TkCommandNames
WidgetClassName

### Public Instance Methods

clear() click to toggle source

based on Tk::Iwidgets::Entryfield

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

cursor=(index) click to toggle source

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

Also aliased as: icursor
default(name) click to toggle source

index method is not available, because it shows index of the entry field

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 23
    def default(name)
      tk_call(@path, 'default', tagid(name))
      self
    end

delete(first, last=None) click to toggle source

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

dragto(pos) click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 90
    def dragto(pos)
      tk_send_without_enc('scan', 'dragto', pos)
      self
    end

get()
Alias for: value
hide(name) click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 28
    def hide(name)
      tk_call(@path, 'hide', tagid(name))
      self
    end

icursor(index)
Alias for: cursor=
index(idx) click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 77
    def index(idx)
      number(tk_send_without_enc('index', idx))
    end

insert(pos,text) click to toggle source

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

invoke(name=nil) click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 33
    def invoke(name=nil)
      if name
        tk_call(@path, 'invoke', tagid(name))
      else
        tk_call(@path, 'invoke')
      end
      self
    end

mark(pos) click to toggle source

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

selection_adjust(index) click to toggle source

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

selection_clear() click to toggle source

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

selection_from(index) click to toggle source

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

selection_present() click to toggle source

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

selection_range(s, e) click to toggle source

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

selection_to(index) click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 113
    def selection_to(index)
      tk_send_without_enc('selection', 'to', index)
      self
    end

set(val)
Alias for: value=
show(name) click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 42
    def show(name)
      tk_call(@path, 'show', tagid(name))
      self
    end

value() click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 59
    def value
      _fromUTF8(tk_send_without_enc('get'))
    end

Also aliased as: get
value=(val) click to toggle source

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

Also aliased as: set
xview(*index) click to toggle source

    # File lib/tkextlib/iwidgets/promptdialog.rb, line 118
    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) click to toggle source

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

xview_scroll(*index) click to toggle source

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