In Files

  • tk/lib/tk/menu.rb

Class/Module Index [+]

Quicksearch

Tk::Menu::TkInternalFunction

Public Class Methods

next_entry(menu, delta) click to toggle source
 
               # File tk/lib/tk/menu.rb, line 410
def next_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 398
def next_menu(menu, 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', menu, dir)
end