Methods
G
H
S
V
Included Modules
Constants
DEFAULT_VSCROLL = true
 
DEFAULT_HSCROLL = true
 
Instance Public methods
get_scrollbarwidth()

get/set width of scrollbar

# File ext/tk/sample/tktextframe.rb, line 96
def get_scrollbarwidth
  @v_scroll.width
end
hscroll(mode, *args)

horizontal scrollbar : ON/OFF

# File ext/tk/sample/tktextframe.rb, line 125
def hscroll(mode, *args)
  st = TkGrid.info(@h_scroll)
  if mode && st.size == 0 then
    @h_scroll.grid('row'=>1, 'column'=>0, 'sticky'=>'ew')
    hook_hscroll_on(*args)
  elsif !mode && st.size != 0 then
    @h_scroll.ungrid
    hook_hscroll_off(*args)
  end
  self
end
scrollbarwidth(width)
Alias for: set_scrollbarwidth
set_scrollbarwidth(width)
Also aliased as: scrollbarwidth
# File ext/tk/sample/tktextframe.rb, line 99
def set_scrollbarwidth(width)
  @v_scroll.width(width)
  @h_scroll.width(width)
end
vscroll(mode, *args)

vertical scrollbar : ON/OFF

# File ext/tk/sample/tktextframe.rb, line 112
def vscroll(mode, *args)
  st = TkGrid.info(@v_scroll)
  if mode && st.size == 0 then
    @v_scroll.grid('row'=>0, 'column'=>1, 'sticky'=>'ns')
    hook_vscroll_on(*args)
  elsif !mode && st.size != 0 then
    @v_scroll.ungrid
    hook_vscroll_off(*args)
  end
  self
end