mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* renewal Ruby/Tk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9857d6c546
commit
f1c3638777
132 changed files with 7836 additions and 11515 deletions
|
|
@ -65,9 +65,9 @@ class TkTextFrame < TkText
|
|||
# vertical scrollbar : ON/OFF
|
||||
def vscroll(mode)
|
||||
st = TkGrid.info(@v_scroll)
|
||||
if mode && st == [] then
|
||||
if mode && st.size == 0 then
|
||||
@v_scroll.grid('row'=>0, 'column'=>1, 'sticky'=>'ns')
|
||||
elsif !mode && st != [] then
|
||||
elsif !mode && st.size != 0 then
|
||||
@v_scroll.ungrid
|
||||
end
|
||||
self
|
||||
|
|
@ -76,10 +76,10 @@ class TkTextFrame < TkText
|
|||
# horizontal scrollbar : ON/OFF
|
||||
def hscroll(mode, wrap_mode="char")
|
||||
st = TkGrid.info(@h_scroll)
|
||||
if mode && st == [] then
|
||||
if mode && st.size == 0 then
|
||||
@h_scroll.grid('row'=>1, 'column'=>0, 'sticky'=>'ew')
|
||||
wrap 'none' # => self.wrap('none')
|
||||
elsif !mode && st != [] then
|
||||
elsif !mode && st.size != 0 then
|
||||
@h_scroll.ungrid
|
||||
wrap wrap_mode # => self.wrap(wrap_mode)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue