• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ruby-104/ruby/ext/tk/sample/demos-en/

Lines Matching refs:add

70   $menu84_frame.add('cascade', 'label'=>'File', 'menu'=>m, 'underline'=>0)
71 add('command', 'label'=>'Open...', 'command'=>proc{fail 'this is just a demo: no action has been defined for the "Open..." entry'})
72 add('command', 'label'=>'New', 'command'=>proc{fail 'this is just a demo: no action has been defined for the "New" entry'})
73 add('command', 'label'=>'Save', 'command'=>proc{fail 'this is just a demo: no action has been defined for the "Save" entry'})
74 add('command', 'label'=>'Save As...', 'command'=>proc{fail 'this is just a demo: no action has been defined for the "Save As..." entry'})
75 add('separator')
76 add('command', 'label'=>'Print Setup...', 'command'=>proc{fail 'this is just a demo: no action has been defined for the "Print Setup..." entry'})
77 add('command', 'label'=>'Print...', 'command'=>proc{fail 'this is just a demo: no action has been defined for the "Print..." entry'})
78 add('separator')
79 add('command', 'label'=>'Dismiss Menus Demo', 'command'=>proc{$menu84_demo.destroy})
92 $menu84_frame.add('cascade', 'label'=>'Basic', 'menu'=>m, 'underline'=>0)
93 add('command', 'label'=>'Long entry that does nothing')
95 add('command', 'label'=>"Print letter \"#{c}\"",
103 $menu84_frame.add('cascade', 'label'=>'Cascades', 'menu'=>m, 'underline'=>0)
104 add('command', 'label'=>'Print hello',
108 add('command', 'label'=>'Print goodbye',
114 m.add('cascade', 'label'=>'Check buttons',
117 add('check', 'label'=>'Oil checked', 'variable'=>oil)
119 add('check', 'label'=>'Transmission checked', 'variable'=>trans)
121 add('check', 'label'=>'Brakes checked', 'variable'=>brakes)
123 add('check', 'label'=>'Lights checked', 'variable'=>lights)
124 add('separator')
125 add('command', 'label'=>'Show current values',
136 m.add('cascade', 'label'=>'Radio buttons',
139 add('radio', 'label'=>'10 point', 'variable'=>pointSize, 'value'=>10)
140 add('radio', 'label'=>'14 point', 'variable'=>pointSize, 'value'=>14)
141 add('radio', 'label'=>'18 point', 'variable'=>pointSize, 'value'=>18)
142 add('radio', 'label'=>'24 point', 'variable'=>pointSize, 'value'=>24)
143 add('radio', 'label'=>'32 point', 'variable'=>pointSize, 'value'=>32)
144 add('separator')
146 add('radio', 'label'=>'Roman', 'variable'=>style, 'value'=>'roman')
147 add('radio', 'label'=>'Bold', 'variable'=>style, 'value'=>'bold')
148 add('radio', 'label'=>'Italic', 'variable'=>style, 'value'=>'italic')
149 add('separator')
150 add('command', 'label'=>'Show current values',
160 $menu84_frame.add('cascade', 'label'=>'Icons', 'menu'=>m, 'underline'=>0)
161 add('command', 'hidemargin'=>1,
169 add('command', 'bitmap'=>icon, 'hidemargin'=>1,
177 $menu84_frame.add('cascade', 'label'=>'More', 'menu'=>m, 'underline'=>0)
180 add('command', 'label'=>i,
198 $menu84_frame.add('cascade', 'label'=>'Colors', 'menu'=>m, 'underline'=>0)
200 add('command', 'label'=>c, 'background'=>c,