Lines Matching refs:add
30 $m add command -label "Open ..." -command {error "this is just a demo: no action has been defined for the \"Open ...\" entry"}
31 $m add command -label "New" -command {error "this is just a demo: no action has been defined for the \"New\" entry"}
32 $m add command -label "Save" -command {error "this is just a demo: no action has been defined for the \"Save\" entry"}
33 $m add command -label "Save As ..." -command {error "this is just a demo: no action has been defined for the \"Save As ...\" entry"}
34 $m add separator
35 $m add command -label "Print Setup ..." -command {error "this is just a demo: no action has been defined for the \"Print Setup ...\" entry"}
36 $m add command -label "Print ..." -command {error "this is just a demo: no action has been defined for the \"Print ...\" entry"}
37 $m add separator
38 $m add command -label "Quit" -command "destroy $w"
43 $m add command -label "Long entry that does nothing"
45 $m add command -label "Print letter \"$i\"" -underline 14 \
53 $m add command -label "Print hello" \
56 $m add command -label "Print goodbye" -command {\
59 $m add cascade -label "Check buttons" \
61 $m add cascade -label "Radio buttons" \
66 $m add check -label "Oil checked" -variable oil
67 $m add check -label "Transmission checked" -variable trans
68 $m add check -label "Brakes checked" -variable brakes
69 $m add check -label "Lights checked" -variable lights
70 $m add separator
71 $m add command -label "Show current values" \
78 $m add radio -label "10 point" -variable pointSize -value 10
79 $m add radio -label "14 point" -variable pointSize -value 14
80 $m add radio -label "18 point" -variable pointSize -value 18
81 $m add radio -label "24 point" -variable pointSize -value 24
82 $m add radio -label "32 point" -variable pointSize -value 32
83 $m add sep
84 $m add radio -label "Roman" -variable style -value roman
85 $m add radio -label "Bold" -variable style -value bold
86 $m add radio -label "Italic" -variable style -value italic
87 $m add sep
88 $m add command -label "Show current values" \
96 $m add command \
102 $m add command -bitmap $i -command "puts {You invoked the $i bitmap}"
109 $m add command -label $i -command [list puts "You invoked \"$i\""]
116 $m add command -label $i -background $i \