Methods
Included Modules
Constants
DEFAULT_VSCROLL | = | true |
DEFAULT_HSCROLL | = | true |
Instance Public methods
get_scrollbarwidth()
Link
get/set width of scrollbar
hscroll(mode, *args)
Link
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
vscroll(mode, *args)
Link
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