Class: Tk::Iwidgets::Combobox

Class | Tk::Iwidgets::Combobox
In: | tk/lib/tkextlib/iwidgets/combobox.rb
Parent: | Tk::Iwidgets::Entryfield

### Methods

clear delete_entry delete_list get_curselection get_list_contents insert_entry insert_list justify see selection_anchor selection_clear selection_includes selection_set size sort sort_ascending sort_descending

### Constants

TkCommandNames | = | ['::iwidgets::combobox'.freeze].freeze
WidgetClassName | = | 'Combobox'.freeze

### Public Instance methods

clear(component=None)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 26
      def clear(component=None)
        tk_call(@path, 'clear', component)
        self
      end

delete_entry(first, last=None)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 36
      def delete_entry(first, last=None)
        tk_call(@path, 'delete', 'entry', first, last)
        self
      end

delete_list(first, last=None)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 31
      def delete_list(first, last=None)
        tk_call(@path, 'delete', 'list', first, last)
        self
      end

get_curselection()

scrolledlistbox methods

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 80
      def get_curselection
        tk_call(@path, 'getcurselection')
      end

get_list_contents(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 41
      def get_list_contents(index)
        tk_call(@path, 'get', index)
      end

insert_entry(idx, *elems)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 50
      def insert_entry(idx, *elems)
        tk_call(@path, 'insert', 'entry', idx, *elems)
        self
      end

insert_list(idx, *elems)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 45
      def insert_list(idx, *elems)
        tk_call(@path, 'insert', 'list', idx, *elems)
        self
      end

justify(dir)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 83
      def justify(dir)
        tk_call(@path, 'justify', dir)
        self
      end

see(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 59
      def see(index)
        tk_send_without_enc('see', index)
        self
      end

selection_anchor(index)

[Source]

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

selection_clear(first, last=None)

[Source]

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

selection_includes(index)

[Source]

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

selection_set(first, last=None)

[Source]

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

size()

listbox methods

[Source]

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

sort(*params, &b)

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 87
      def sort(*params, &b)
        # see 'lsort' man page about params
        if b
          tk_call(@path, 'sort', '-command', proc(&b), *params)
        else
          tk_call(@path, 'sort', *params)
        end
        self
      end

sort_ascending()

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 96
      def sort_ascending
        tk_call(@path, 'sort', 'ascending')
        self
      end

sort_descending()

[Source]

    # File tk/lib/tkextlib/iwidgets/combobox.rb, line 100
      def sort_descending
        tk_call(@path, 'sort', 'descending')
        self
      end

[Validate]