stk/Contrib/STk-wtour/lessons/menu1.stk

10 lines
285 B
Plaintext
Raw Normal View History

1996-09-27 06:29:02 -04:00
;; Basic drop down menu
(pack (menubutton '.mbutton :text "Menu Button" :menu ".mbutton.menu"))
(menu '.mbutton.menu)
(.mbutton.menu 'add 'command :label "Open")
(.mbutton.menu 'add 'command :label "Close")
(.mbutton.menu 'add 'separator)
(.mbutton.menu 'add 'command :label "Exit")