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 411
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 399
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
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.