tearoffcommand

If this option is not '(), then it specifies a procedure to invoke whenever the menu is torn off.

When torn off, the tearoffcommand will be invoked with two arguments:

  1. the Tk-id of the window with the menu bar where tear-off occurred
  2. the Tk-id of the new window.

So, the lambda expression should take two arguments as in this example:

(lambda (container torn-off)
  (print "id of container is " container)
  (print "id of torn-off is " torn-off))

© Author | Home | Sitemap