# File tk/lib/tk/menu.rb, line 410defnext_entry(menu, delta)
# delta is increment value of entry index.# For example, +1 denotes 'next entry' and -1 denotes 'previous entry'.Tk.tk_call('::tk::MenuNextEntry', menu, delta)
end
next_menu(menu, dir='next')click to toggle source
These methods calls internal functions of Tcl/Tk. So, They may not work on
your Tcl/Tk.
# File tk/lib/tk/menu.rb, line 398defnext_menu(menu, dir='next')
dir = dir.to_scasedirwhen'next', 'forward', 'down'dir = 'right'when'previous', 'backward', 'up'dir = 'left'endTk.tk_call('::tk::MenuNextMenu', menu, dir)
end