Searched +refs:add +refs:menu (Results 1 - 25 of 112) sorted by relevance

12345

/macosx-10.9.5/tcl-102/tk/tk/tests/
H A Dvisual_bb.test20 # Each menu entry invokes a visual test file
46 # menu bar and a message explaining the basic operation
50 frame .menu -relief raised -borderwidth 1
52 -borderwidth 1 -text "This application provides a collection of visual tests for the Tk toolkit. Each menu entry invokes a test, which displays information on the screen. You can then verify visually that the information is being displayed in the correct way. The tests under the \"Postscript\" menu exercise the Postscript-generation capabilities of canvas widgets."
54 pack .menu -side top -fill x
62 menubutton .menu.file -text "File" -menu .menu.file.m
63 menu
[all...]
/macosx-10.9.5/tcl-102/tk84/tk/tests/
H A Dvisual_bb.test25 # Each menu entry invokes a visual test file
51 # menu bar and a message explaining the basic operation
55 frame .menu -relief raised -borderwidth 1
57 -borderwidth 1 -text "This application provides a collection of visual tests for the Tk toolkit. Each menu entry invokes a test, which displays information on the screen. You can then verify visually that the information is being displayed in the correct way. The tests under the \"Postscript\" menu exercise the Postscript-generation capabilities of canvas widgets."
59 pack .menu -side top -fill x
67 menubutton .menu.file -text "File" -menu .menu.file.m
68 menu
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/tk/sample/tkextlib/iwidgets/sample/
H A Dmenubar2.rb11 :text=>'File', :menu=>[
22 mb.add(:command, '.edit.undo', :label=>'Undo', :underline=>0)
23 mb.add(:separator, '.edit.sep2')
24 mb.add(:command, '.edit.cut', :label=>'Cut', :underline=>1)
25 mb.add(:command, '.edit.copy', :label=>'Copy', :underline=>1)
26 mb.add(:command, '.edit.paste', :label=>'Paste', :underline=>0)
28 mb.add(:menubutton, '.options', :text=>'Options', :menu=>[
37 mb.add(:cascade, '.options.prefs', :label=>'Preferences', :menu
[all...]
H A Dmainwindow.rb7 mw.menubar.add(:menubutton, 'file', :text=>'File', :underline=>0,
8 :padx=>8, :pady=>2, :menu=>[
/macosx-10.9.5/tcl-102/tk/tk/library/demos/
H A Drolodex38 button .buttons.add -text Add
41 pack .buttons.clear .buttons.add .buttons.search .buttons.delete \
48 # DKF - note that this is an old-style menu bar; I just have not yet
50 # menu system and its <<MenuSelect>> virtual event.
52 frame .menu -relief raised -borderwidth 1
53 pack .menu -before .frame -side top -fill x
55 menubutton .menu.file -text "File" -menu .menu.file.m -underline 0
56 menu
[all...]
H A Drmt35 # Create menu bar. Arrange to recreate all the information in the
36 # applications sub-menu whenever it is cascaded to.
38 . configure -menu [menu .menu]
39 menu .menu.file
40 menu .menu.file.apps -postcommand fillAppsMenu
41 .menu ad
[all...]
H A Dtcolor45 # Create the menu bar at the top of the window.
47 . configure -menu [menu .menu]
48 menu .menu.file
49 .menu add cascade -menu .menu
[all...]
/macosx-10.9.5/tcl-102/tk84/tk/library/demos/
H A Drolodex36 button .buttons.add -text Add
39 pack .buttons.clear .buttons.add .buttons.search .buttons.delete \
46 frame .menu -relief raised -borderwidth 1
47 pack .menu -before .frame -side top -fill x
49 menubutton .menu.file -text "File" -menu .menu.file.m -underline 0
50 menu .menu.file.m
51 .menu
[all...]
H A Drmt32 # Create menu bar. Arrange to recreate all the information in the
33 # applications sub-menu whenever it is cascaded to.
35 . configure -menu [menu .menu]
36 menu .menu.file
37 menu .menu.file.apps -postcommand fillAppsMenu
38 .menu ad
[all...]
H A Dtcolor45 option add *Entry.background white
48 # Create the menu bar at the top of the window.
50 . configure -menu [menu .menu]
51 menu .menu.file
52 .menu add cascade -menu
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/incrtcl/incrTcl/itk/demos/
H A Ditkedit12 option add *edit.width 5i startupFile
13 option add *edit.height 4i startupFile
14 option add *Fileselectiondialog.width 4i startupFile
15 option add *Fileselectiondialog.height 5i startupFile
163 .edit add $pane -minimum 100
184 # FILE menu
186 menubutton .mbar.file -text "File" -underline 0 -menu .mbar.file.menu
189 menu .mbar.file.menu
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/tk/sample/demos-en/
H A Dmenu84.rb30 text("This window contains a menubar with cascaded menus. You can invoke entries with an accelerator by typing Command+x, where \"x\" is the character next to the command key symbol. The rightmost menu can be torn off into a palette by dragging outside of its bounds and releasing the mouse.")
32 text("This window contains a menubar with cascaded menus. You can post a menu from the keyboard by typing Alt+x, where \"x\" is the character underlined on the menu. You can then traverse among the menus using the arrow keys. When a menu is posted, you can invoke the current entry by typing space, or you can invoke any entry by typing its underlined character. If a menu entry has an accelerator, you can invoke the entry without posting the menu just by typing the accelerator. The rightmost menu can be torn off into a palette by selecting the first item in the menu.")
65 # create menu frame
68 # menu
[all...]
H A Dmenubu.rb16 menu = TkMenu.new(menubutton) {
18 add 'radio', 'label'=>firstValue, 'variable'=>varName
20 menubutton.menu(menu)
22 menu.add 'radio', 'label'=>i, 'variable'=>varName
25 return menu
47 text("This is a demonstration of menubuttons. The \"Below\" menubutton pops its menu below the button; the \"Right\" button pops to the right, etc. There are two option menus directly below this text; one is just a standard menu and the other is a 16-color palette.")
80 add 'comman
[all...]
H A Drolodex106 attr_reader :clear, :add, :search, :delete
112 @add = TkButton.new(self,
118 for w in [@clear,@add,@search,@delete]
136 @file_menu.add("command",
140 @file_menu.add("command",
144 @file.menu(@file_menu)
151 @help_menu.add("command",
155 @help_menu.add("command",
159 @help_menu.add("command",
163 @help_menu.add("comman
[all...]
H A Dttkmenu.rb25 Below are some themed menu buttons \
28 that the menu buttons themselves look, \
29 and that the central menu button is styled differently \
64 b1.menu(m1 = Tk::Menu.new(b1, :tearoff=>false))
65 b2.menu(m2 = Tk::Menu.new(b2, :tearoff=>false))
66 b3.menu(m3 = Tk::Menu.new(b3, :tearoff=>false))
67 b4.menu(m4 = Tk::Menu.new(b4, :tearoff=>false))
68 b5.menu(m5 = Tk::Menu.new(b5, :tearoff=>false))
71 m1.add(:command, :label=>theme, :command=>proc{Ttk.set_theme theme})
72 m2.add(
[all...]
H A Drmt34 # Create menu bar. Arrange to recreate all the information in the
35 # applications sub-menu whenever it is cascaded to.
41 mb.menu(mf)
44 mf.add('cascade', 'label'=>'Select Application',
45 'menu'=>ma, 'underline'=>0)
47 add('command', 'label'=>'Quit',
238 # The method below will fill in the applications sub-menu with a list
241 def fillAppsMenu(menu)
244 menu.delete(0,'last')
254 menu
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/tk/sample/demos-jp/
H A Dmenu84.rb67 # create menu frame
70 # menu
72 $menu84_frame.add('cascade', 'label'=>'File', 'menu'=>m, 'underline'=>0)
73 add('command', 'label'=>'Open...', 'command'=>proc{fail '���������������������������������������"Open..." ���������������������������������������������������������'})
74 add('command', 'label'=>'New', 'command'=>proc{fail '���������������������������������������"New" ���������������������������������������������������������'})
75 add('command', 'label'=>'Save', 'command'=>proc{fail '���������������������������������������"Save" ���������������������������������������������������������'})
76 add('command', 'label'=>'Save As...', 'command'=>proc{fail '���������������������������������������"Save As..." ���������������������������������������������������������'})
77 add('separator')
78 add('comman
[all...]
H A Dmenubu.rb12 menu = TkMenu.new(menubutton) {
14 add 'radio', 'label'=>firstValue, 'variable'=>varName
16 menubutton.menu(menu)
18 menu.add 'radio', 'label'=>i, 'variable'=>varName
21 return menu
77 add 'command', 'label'=>"Below menu: first item", 'command'=>proc {puts "\"You have selected the first item from the Below menu
[all...]
H A Drolodex106 attr_reader :clear, :add, :search, :delete
112 @add = TkButton.new(self,
118 for w in [@clear,@add,@search,@delete]
136 @file_menu.add("command",
140 @file_menu.add("command",
144 @file.menu(@file_menu)
151 @help_menu.add("command",
155 @help_menu.add("command",
159 @help_menu.add("command",
163 @help_menu.add("comman
[all...]
H A Drolodex-j108 attr_reader :clear, :add, :search, :delete
113 @add = TkButton.new(self, "text" => "������")
116 for w in [@clear,@add,@search,@delete]
134 @file_menu.add("command",
138 @file_menu.add("command",
142 @file.menu(@file_menu)
149 @help_menu.add("command",
153 @help_menu.add("command",
157 @help_menu.add("command",
161 @help_menu.add("comman
[all...]
H A Dttkmenu.rb70 b1.menu(m1 = Tk::Menu.new(b1, :tearoff=>false))
71 b2.menu(m2 = Tk::Menu.new(b2, :tearoff=>false))
72 b3.menu(m3 = Tk::Menu.new(b3, :tearoff=>false))
73 b4.menu(m4 = Tk::Menu.new(b4, :tearoff=>false))
74 b5.menu(m5 = Tk::Menu.new(b5, :tearoff=>false))
77 m1.add(:command, :label=>theme, :command=>proc{Ttk.set_theme theme})
78 m2.add(:command, :label=>theme, :command=>proc{Ttk.set_theme theme})
79 m3.add(:command, :label=>theme, :command=>proc{Ttk.set_theme theme})
80 m4.add(:command, :label=>theme, :command=>proc{Ttk.set_theme theme})
81 m5.add(
[all...]
H A Drmt34 # Create menu bar. Arrange to recreate all the information in the
35 # applications sub-menu whenever it is cascaded to.
41 mb.menu(mf)
44 mf.add('cascade', 'label'=>'Select Application',
45 'menu'=>ma, 'underline'=>0)
47 add('command', 'label'=>'Quit',
238 # The method below will fill in the applications sub-menu with a list
241 def fillAppsMenu(menu)
244 menu.delete(0,'last')
254 menu
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/tk/lib/tk/
H A Dmenuspec.rb17 # [text, underline, configs], # menu button/entry (*1)
28 # A menu_info is an array of menu entries:
36 # is acceptable for 'menu' key (then, create sub-menu).
50 # menu button/entry information.
53 # If you want to configure a cascade menu, add :menu_config=>{...configs..}
84 #menu = Tk::Menu.new(parent, :widgetname=>menu_name, :tearoff=>tearoff)
86 menu = TkMenu.new(parent, :widgetname=>menu_name, :tearoff=>tearoff)
88 #menu
[all...]
H A Dmenu.rb2 # tk/menu.rb : treat menu and menubutton
32 super(id).update('menu'=>proc{|i, v| window(v)})
52 TkCommandNames = ['menu'.freeze].freeze
58 # tk_call_without_enc('menu', @path, *hash_kv(keys, true))
60 # tk_call_without_enc('menu', @path)
102 def add(type, keys=nil) method in class:Tk
103 tk_send_without_enc('add', type, *hash_kv(keys, true))
107 add('cascade', keys)
110 add('checkbutto
649 def add(value) method in class:Tk.entrycget.entryconfigure.entryconfiginfo.current_entryconfiginfo.Tk.initialize.Tk
675 def menu method in class:Tk.entrycget.entryconfigure.entryconfiginfo.current_entryconfiginfo.Tk.initialize.Tk
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/tk/sample/
H A Dtkmenubutton.rb15 menu TkMenu.new(:parent=>mb, :tearoff=>0){
16 add(:command, :label=>'Right menu: first item',
18 " from the Right menu.\n"})
19 add(:command, :label=>'Right menu: second item',
21 " from the Right menu.\n"})
28 menu(TkMenu.new(:parent=>mb, :tearoff=>0){
29 add(:command, :label=>'Below menu
[all...]

Completed in 213 milliseconds

12345