Methods
- A
- C
- D
- F
- G
- I
- M
- P
- S
- U
Constants
TkCommandNames | = | ['scrollbar'.freeze].freeze |
WidgetClassName | = | 'Scrollbar'.freeze |
Instance Public methods
activate(element=None)
Link
assign(*wins)
Link
# File ext/tk/lib/tk/scrollbar.rb, line 63 def assign(*wins) begin self.command(@scroll_proc) if self.cget('command').cmd != @scroll_proc rescue Exception self.command(@scroll_proc) end orient = self.orient wins.each{|w| @assigned << w unless @assigned.index(w) if orient == 'horizontal' w.xscrollcommand proc{|first, last| self.propagate_set(w, first, last)} else # 'vertical' w.yscrollcommand proc{|first, last| self.propagate_set(w, first, last)} end } Tk.update # avoid scrollbar trouble self end
assigned_list()
Link
autoscroll()
Link
configure(*args)
Link
delta(deltax, deltay)
Link
def delta(deltax=None, deltay=None)
fraction(x, y)
Link
def fraction(x=None, y=None)
get()
Link
identify(x, y)
Link
moveto(fraction)
Link
propagate_set(src_win, first, last)
Link
# File ext/tk/lib/tk/scrollbar.rb, line 54 def propagate_set(src_win, first, last) self.set(first, last) if self.orient == 'horizontal' @assigned.each{|w| w.xview('moveto', first) if w != src_win} else # 'vertical' @assigned.each{|w| w.yview('moveto', first) if w != src_win} end end
scroll(*args)
Link
scroll_pages(num)
Link
scroll_units(num)
Link
set(first, last)
Link