Lines Matching refs:demo

56 # section titles and demo descriptions.  Also define the bindings for
61 # We put some "space" characters to the left and right of each demo description
69 .t tag configure demo -lmargin1 1c -lmargin2 1c \
75 .t tag configure demo -lmargin1 1c -lmargin2 1c \
81 .t tag bind demo <ButtonRelease-1> {
85 .t tag bind demo <Enter> {
91 .t tag bind demo <Leave> {
96 .t tag bind demo <Motion> {
103 set i [lsearch -glob $tags demo-*]
120 .t insert end "1. Labels (text and bitmaps)." {demo demo-label}
122 .t insert end "2. Buttons." {demo demo-button}
124 .t insert end "3. Checkbuttons (select any of a group)." {demo demo-check}
126 .t insert end "4. Radiobuttons (select one of a group)." {demo demo-radio}
128 .t insert end "5. A 15-puzzle game made out of buttons." {demo demo-puzzle}
130 .t insert end "6. Iconic buttons that use bitmaps." {demo demo-icon}
132 .t insert end "7. Two labels displaying images." {demo demo-image1}
135 {demo demo-image2}
140 .t insert end "1. 50 states." {demo demo-states}
143 {demo demo-colors}
145 .t insert end "3. A collection of famous sayings." {demo demo-sayings}
150 .t insert end "1. Without scrollbars." {demo demo-entry1}
152 .t insert end "2. With scrollbars." {demo demo-entry2}
154 .t insert end "3. Simple Rolodex-like form." {demo demo-form}
159 .t insert end "1. Basic editable text." {demo demo-text}
161 .t insert end "2. Text display styles." {demo demo-style}
163 .t insert end "3. Hypertext (tag bindings)." {demo demo-bind}
165 .t insert end "4. A text widget with embedded windows." {demo demo-twind}
167 .t insert end "5. A search tool built with a text widget." {demo demo-search}
172 .t insert end "1. The canvas item types." {demo demo-items}
174 .t insert end "2. A simple 2-D plot." {demo demo-plot}
176 .t insert end "3. Text items in canvases." {demo demo-ctext}
178 .t insert end "4. An editor for arrowheads on canvas lines." {demo demo-arrow}
180 .t insert end "5. A ruler with adjustable tab stops." {demo demo-ruler}
182 .t insert end "6. A building floor plan." {demo demo-floor}
184 .t insert end "7. A simple scrollable canvas." {demo demo-cscroll}
189 .t insert end "1. Vertical scale." {demo demo-vscale}
191 .t insert end "2. Horizontal scale." {demo demo-hscale}
197 {demo demo-menu}
202 .t insert end "1. Message boxes." {demo demo-msgbox}
204 .t insert end "2. File selection dialog." {demo demo-filebox}
206 .t insert end "3. Color picker." {demo demo-clrpick}
211 .t insert end "1. The built-in bitmaps." {demo demo-bitmap}
213 .t insert end "2. A dialog box with a local grab." {demo demo-dialog1}
215 .t insert end "3. A dialog box with a global grab." {demo demo-dialog2}
223 # new demo window.
266 # This procedure is called when the user clicks on a demo description.
275 set i [lsearch -glob $tags demo-*]
282 set demo [string range [lindex $tags $i] 5 end]
283 uplevel [list source [file join $tk_library demos $demo.tcl]]
292 # Show the name of the demo program in the status bar. This procedure
293 # is called when the user moves the cursor over a demo description.
298 set i [lsearch -glob $tags demo-*]
304 set demo [string range [lindex $tags $i] 5 end]
305 .statusBar.lab config -text "Run the \"$demo\" sample program"