diff options
Diffstat (limited to 'ext/tk/sample')
| -rw-r--r-- | ext/tk/sample/tkextlib/treectrl/help.rb | 6 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/treectrl/www-options.rb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/tk/sample/tkextlib/treectrl/help.rb b/ext/tk/sample/tkextlib/treectrl/help.rb index be67cc572..af026fc00 100644 --- a/ext/tk/sample/tkextlib/treectrl/help.rb +++ b/ext/tk/sample/tkextlib/treectrl/help.rb @@ -119,7 +119,7 @@ def demoHelpContents(t) treeCtrlHelp.bind('Leave', proc{|w, x, y| helpMotion(w, x, y) }, '%W %x %y') - treeCtrlHelp.bind('Button1-Motion', + treeCtrlHelp.bind('KeyPress-Return', proc{|w, x, y| if w.selection_get.length == 1 if $Version_1_1_OrLater @@ -271,7 +271,7 @@ def demoHelpContents2(t) treeCtrlHelp.bind('Leave', proc{|w, x, y| helpMotion(w, x, y) }, '%W %x %y') - treeCtrlHelp.bind('Button1-Motion', + treeCtrlHelp.bind('KeyPress-Return', proc{|w, x, y| if w.selection_get.length == 1 w.item_toggle(w.selection_get[0]) @@ -347,7 +347,7 @@ end def helpRelease1(w, x, y) case @Priv['buttonMode'] when 'resize', 'header' - Tk::TreeCtrl::BindCallback.Release1(w, x, y) + Tk::TreeCtrl::BindCallback.release1(w, x, y) end @Priv['buttonMode'] = '' end diff --git a/ext/tk/sample/tkextlib/treectrl/www-options.rb b/ext/tk/sample/tkextlib/treectrl/www-options.rb index 2b0f75e85..efa55ca06 100644 --- a/ext/tk/sample/tkextlib/treectrl/www-options.rb +++ b/ext/tk/sample/tkextlib/treectrl/www-options.rb @@ -276,7 +276,7 @@ end def optionMotion1(w, x, y) case @Priv['buttonMode'] when 'resize', 'header' - Tk::TreeCtrl::BindCallback.Motion1(w, x, y) + Tk::TreeCtrl::BindCallback.motion1(w, x, y) end end @@ -297,7 +297,7 @@ end def optionRelease1(w, x, y) case @Priv['buttonMode'] when 'resize', 'header' - Tk::TreeCtrl::BindCallback.Release1(w, x, y) + Tk::TreeCtrl::BindCallback.release1(w, x, y) end @Priv['buttonMode'] = '' end |
