Methods
- A
- B
- C
- D
- G
- H
- I
- K
- L
- M
- S
- T
Included Modules
Instance Public methods
activate(idx)
Link
bbox(idx)
Link
columns(*indices)
Link
get listbox widgets
delete(*idx)
Link
get(*idx)
Link
# File ext/tk/sample/tkmultilistframe.rb, line 455 def get(*idx) if idx.size == 1 @lbox_list.collect{|lbox| lbox.get(*idx)} else list = @lbox_list.collect{|lbox| lbox.get(*idx)} result = [] list[0].each_with_index{|line, index| result << list.collect{|lines| lines[index]} } result end end
get_by_hash(*idx)
Link
hide_each_hscr()
Link
hide_win_hscr()
Link
insert(idx, *lines)
Link
# File ext/tk/sample/tkmultilistframe.rb, line 490 def insert(idx, *lines) lbox_ins = [] (0..@lbox_list.size).each{lbox_ins << []} lines.each{|line| if line.kind_of? Hash array = [] @name_index.each_pair{|label, indices| if indices.size == 1 array[indices[0]] = line[label] else if line[label].kind_of? Array indices.each_with_index{|index, num| array[index] = line[label][num] } else array[indices[0]] = line[label] end end } line = array end @name_index.each_pair{|label, indices| if indices.size == 1 lbox_ins[indices[0]] << line[indices[0]] else indices.each{|index| lbox_ins[index] << line[index]} end } } @lbox_list.each_with_index{|lbox, index| lbox.insert(idx, *lbox_ins[index]) if lbox_ins[index] } end
keep_minsize(bool)
Link
keep_minsize?()
Link
listboxborder(width)
Link
set listbox borders
listboxrelief(relief)
Link
set listbox relief
mode(sel_mode)
Link
set 'mode' option of listboxes
scrollbarborder(width)
Link
set scrollbar border
scrollbarwidth(width)
Link
set scrollbar width
selection_anchor(index)
Link
selection_clear(first, last=None)
Link
selection_set(first, last=None)
Link
show_each_hscr()
Link
each hscr
show_win_hscr()
Link
window hscroll
titlebackground(bg)
Link
set title background color
titleborder(width)
Link
set title borders
titlecommand(idx, cmd=Proc.new)
Link
set title cmds
titlefont(font)
Link
set title font
# File ext/tk/sample/tkmultilistframe.rb, line 396 def titlefont(font) @title_list.each{|label| label['font'] = font} title_height = 0 @title_list.each{|w| h = w.winfo_reqheight title_height = h if title_height < h } @f_title.height title_height bbox = @w_title.bbox @c_title.height(bbox[3]) @c_title.scrollregion(bbox) self end
titleforeground(fg)
Link
set title foreground color
titleinvoke(idx)
Link
call title cmds