Methods
A
C
D
I
N
P
S
T
V
X
Y
Included Modules
Constants
TkCommandNames = ['::iwidgets::tabnotebook'.freeze].freeze
 
WidgetClassName = 'Tabnotebook'.freeze
 
Class Public methods
new(*args)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 71
def initialize(*args)
  super(*args)
  @tabset = self.component_widget('tabset')
end
Instance Public methods
add(keys={})
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 76
def add(keys={})
  window(tk_call(@path, 'add', *hash_kv(keys)))
end
child_site(idx)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 84
def child_site(idx)
  window(tk_call(@path, 'childsite', index(idx)))
end
child_site_list()
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 80
def child_site_list
  list(tk_call(@path, 'childsite'))
end
delete(idx1, idx2=nil)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 88
def delete(idx1, idx2=nil)
  if idx2
    tk_call(@path, 'delete', index(idx1), index(idx2))
  else
    tk_call(@path, 'delete', index(idx1))
  end
  self
end
index(idx)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 97
def index(idx)
  #number(tk_call(@path, 'index', tagid(idx)))
  @tabset.index(tagid(idx))
end
insert(idx, keys={})
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 102
def insert(idx, keys={})
  window(tk_call(@path, 'insert', index(idx), *hash_kv(keys)))
end
next()
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 106
def next
  tk_call(@path, 'next')
  self
end
prev()
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 111
def prev
  tk_call(@path, 'prev')
  self
end
scrollbar(bar=nil)
Alias for: yscrollbar
scrollcommand(cmd=Proc.new)
Also aliased as: xscrollcommand, yscrollcommand
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 126
def scrollcommand(cmd=Proc.new)
  configure_cmd 'scrollcommand', cmd
  self
end
select(idx)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 116
def select(idx)
  tk_call(@path, 'select', index(idx))
  self
end
show_tab(idx)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 121
def show_tab(idx)
  @tabset.show_tab(idx)
  self
end
tagid(tagOrId)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 40
def tagid(tagOrId)
  if tagOrId.kind_of?(Tk::Itk::Component)
    tagOrId.name
  else
    #_get_eval_string(tagOrId)
    tagOrId
  end
end
view(*index)
Also aliased as: xview, yview
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 155
def view(*index)
  if index.size == 0
    idx = num_or_str(tk_send_without_enc('view'))
    if idx.kind_of?(Fixnum) && idx < 0
      nil
    else
      idx
    end
  else
    tk_send_without_enc('view', *index)
    self
  end
end
view_moveto(*index)
Also aliased as: xview_moveto, yview_moveto
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 171
def view_moveto(*index)
  view('moveto', *index)
end
view_scroll(index, what='pages')
Also aliased as: xview_scroll, yview_scroll
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 176
def view_scroll(index, what='pages')
  view('scroll', index, what)
end
xscrollbar(bar=nil)
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 133
def xscrollbar(bar=nil)
  if bar
    @scrollbar = bar
    @scrollbar.orient 'horizontal'
    self.scrollcommand {|*arg| @scrollbar.set(*arg)}
    @scrollbar.command {|*arg| self.xview(*arg)}
    Tk.update  # avoid scrollbar trouble
  end
  @scrollbar
end
xscrollcommand(cmd=Proc.new)
Alias for: scrollcommand
xview(*index)
Alias for: view
xview_moveto(*index)
Alias for: view_moveto
xview_scroll(index, what='pages')
Alias for: view_scroll
yscrollbar(bar=nil)
Also aliased as: scrollbar
# File ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb, line 143
def yscrollbar(bar=nil)
  if bar
    @scrollbar = bar
    @scrollbar.orient 'vertical'
    self.scrollcommand {|*arg| @scrollbar.set(*arg)}
    @scrollbar.command {|*arg| self.yview(*arg)}
    Tk.update  # avoid scrollbar trouble
  end
  @scrollbar
end
yscrollcommand(cmd=Proc.new)
Alias for: scrollcommand
yview(*index)
Alias for: view
yview_moveto(*index)
Alias for: view_moveto
yview_scroll(index, what='pages')
Alias for: view_scroll