Method: Tk::Menu::TkInternalFunction.next_menu
- Defined in:
- lib/tk/menu.rb
.next_menu(menu, dir = 'next') ⇒ Object
These methods calls internal functions of Tcl/Tk. So, They may not work on your Tcl/Tk.
399 400 401 402 403 404 405 406 407 408 409 |
# File 'lib/tk/menu.rb', line 399 def (, dir='next') dir = dir.to_s case dir when 'next', 'forward', 'down' dir = 'right' when 'previous', 'backward', 'up' dir = 'left' end Tk.tk_call('::tk::MenuNextMenu', , dir) end |