Pratt 1.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (283) hide show
  1. data/.exrc +61 -0
  2. data/.gitignore +4 -0
  3. data/History.txt +6 -0
  4. data/Manifest.txt +46 -0
  5. data/Pratt.gemspec +351 -0
  6. data/README.txt +66 -0
  7. data/Rakefile +85 -0
  8. data/TODO +54 -0
  9. data/VERSION +1 -0
  10. data/bin/pratt.rb +13 -0
  11. data/config.rb +34 -0
  12. data/lib/pratt.rb +527 -0
  13. data/lib/pratt/array.rb +11 -0
  14. data/lib/pratt/string.rb +18 -0
  15. data/models/app.rb +40 -0
  16. data/models/customer.rb +24 -0
  17. data/models/payment.rb +22 -0
  18. data/models/pratt.rb +19 -0
  19. data/models/project.rb +82 -0
  20. data/models/whence.rb +70 -0
  21. data/pkgs/tile-0.8.2.tar.gz +0 -0
  22. data/pkgs/tile-0.8.2/ANNOUNCE.txt +95 -0
  23. data/pkgs/tile-0.8.2/ChangeLog +4651 -0
  24. data/pkgs/tile-0.8.2/Makefile +250 -0
  25. data/pkgs/tile-0.8.2/Makefile.in +250 -0
  26. data/pkgs/tile-0.8.2/README.txt +86 -0
  27. data/pkgs/tile-0.8.2/aclocal.m4 +2 -0
  28. data/pkgs/tile-0.8.2/altTheme.o +0 -0
  29. data/pkgs/tile-0.8.2/blink.o +0 -0
  30. data/pkgs/tile-0.8.2/button.o +0 -0
  31. data/pkgs/tile-0.8.2/cache.o +0 -0
  32. data/pkgs/tile-0.8.2/clamTheme.o +0 -0
  33. data/pkgs/tile-0.8.2/classicTheme.o +0 -0
  34. data/pkgs/tile-0.8.2/config.log +1330 -0
  35. data/pkgs/tile-0.8.2/config.status +795 -0
  36. data/pkgs/tile-0.8.2/configure +15248 -0
  37. data/pkgs/tile-0.8.2/configure.in +89 -0
  38. data/pkgs/tile-0.8.2/demos/autocomplete.tcl +59 -0
  39. data/pkgs/tile-0.8.2/demos/demo.tcl +870 -0
  40. data/pkgs/tile-0.8.2/demos/dirbrowser.tcl +167 -0
  41. data/pkgs/tile-0.8.2/demos/dlgtest.tcl +97 -0
  42. data/pkgs/tile-0.8.2/demos/iconlib.tcl +110 -0
  43. data/pkgs/tile-0.8.2/demos/repeater.tcl +117 -0
  44. data/pkgs/tile-0.8.2/demos/toolbutton.tcl +101 -0
  45. data/pkgs/tile-0.8.2/doc/Geometry.3 +230 -0
  46. data/pkgs/tile-0.8.2/doc/INDEX.MAP +153 -0
  47. data/pkgs/tile-0.8.2/doc/Makefile +36 -0
  48. data/pkgs/tile-0.8.2/doc/TILE.XML +45 -0
  49. data/pkgs/tile-0.8.2/doc/Theme.3 +34 -0
  50. data/pkgs/tile-0.8.2/doc/button.n +75 -0
  51. data/pkgs/tile-0.8.2/doc/checkbutton.n +61 -0
  52. data/pkgs/tile-0.8.2/doc/combobox.n +98 -0
  53. data/pkgs/tile-0.8.2/doc/converting.txt +97 -0
  54. data/pkgs/tile-0.8.2/doc/dialog.n +122 -0
  55. data/pkgs/tile-0.8.2/doc/entry.n +438 -0
  56. data/pkgs/tile-0.8.2/doc/frame.n +43 -0
  57. data/pkgs/tile-0.8.2/doc/html/Geometry.html +304 -0
  58. data/pkgs/tile-0.8.2/doc/html/Theme.html +48 -0
  59. data/pkgs/tile-0.8.2/doc/html/button.html +120 -0
  60. data/pkgs/tile-0.8.2/doc/html/category-index.html +18 -0
  61. data/pkgs/tile-0.8.2/doc/html/checkbutton.html +94 -0
  62. data/pkgs/tile-0.8.2/doc/html/combobox.html +164 -0
  63. data/pkgs/tile-0.8.2/doc/html/converting.txt +97 -0
  64. data/pkgs/tile-0.8.2/doc/html/dialog.html +159 -0
  65. data/pkgs/tile-0.8.2/doc/html/entry.html +613 -0
  66. data/pkgs/tile-0.8.2/doc/html/frame.html +76 -0
  67. data/pkgs/tile-0.8.2/doc/html/image.html +100 -0
  68. data/pkgs/tile-0.8.2/doc/html/index.html +25 -0
  69. data/pkgs/tile-0.8.2/doc/html/keyword-index.html +228 -0
  70. data/pkgs/tile-0.8.2/doc/html/label.html +133 -0
  71. data/pkgs/tile-0.8.2/doc/html/labelframe.html +91 -0
  72. data/pkgs/tile-0.8.2/doc/html/manpage.css +212 -0
  73. data/pkgs/tile-0.8.2/doc/html/menubutton.html +63 -0
  74. data/pkgs/tile-0.8.2/doc/html/notebook.html +280 -0
  75. data/pkgs/tile-0.8.2/doc/html/paned.html +149 -0
  76. data/pkgs/tile-0.8.2/doc/html/progressbar.html +138 -0
  77. data/pkgs/tile-0.8.2/doc/html/radiobutton.html +89 -0
  78. data/pkgs/tile-0.8.2/doc/html/scrollbar.html +221 -0
  79. data/pkgs/tile-0.8.2/doc/html/separator.html +48 -0
  80. data/pkgs/tile-0.8.2/doc/html/sizegrip.html +62 -0
  81. data/pkgs/tile-0.8.2/doc/html/style.html +172 -0
  82. data/pkgs/tile-0.8.2/doc/html/tile-intro.html +164 -0
  83. data/pkgs/tile-0.8.2/doc/html/treeview.html +634 -0
  84. data/pkgs/tile-0.8.2/doc/html/widget.html +342 -0
  85. data/pkgs/tile-0.8.2/doc/image.n +81 -0
  86. data/pkgs/tile-0.8.2/doc/internals.txt +409 -0
  87. data/pkgs/tile-0.8.2/doc/label.n +75 -0
  88. data/pkgs/tile-0.8.2/doc/labelframe.n +64 -0
  89. data/pkgs/tile-0.8.2/doc/man.macros +239 -0
  90. data/pkgs/tile-0.8.2/doc/menubutton.n +41 -0
  91. data/pkgs/tile-0.8.2/doc/notebook.n +188 -0
  92. data/pkgs/tile-0.8.2/doc/paned.n +95 -0
  93. data/pkgs/tile-0.8.2/doc/progressbar.n +79 -0
  94. data/pkgs/tile-0.8.2/doc/radiobutton.n +57 -0
  95. data/pkgs/tile-0.8.2/doc/scrollbar.n +160 -0
  96. data/pkgs/tile-0.8.2/doc/separator.n +30 -0
  97. data/pkgs/tile-0.8.2/doc/sizegrip.n +53 -0
  98. data/pkgs/tile-0.8.2/doc/style.n +119 -0
  99. data/pkgs/tile-0.8.2/doc/tile-intro.n +165 -0
  100. data/pkgs/tile-0.8.2/doc/tmml.options +4 -0
  101. data/pkgs/tile-0.8.2/doc/treeview.n +415 -0
  102. data/pkgs/tile-0.8.2/doc/widget.n +227 -0
  103. data/pkgs/tile-0.8.2/doc/xml/Geometry.tmml +379 -0
  104. data/pkgs/tile-0.8.2/doc/xml/INDEX.MAP +153 -0
  105. data/pkgs/tile-0.8.2/doc/xml/Theme.tmml +63 -0
  106. data/pkgs/tile-0.8.2/doc/xml/button.tmml +134 -0
  107. data/pkgs/tile-0.8.2/doc/xml/checkbutton.tmml +119 -0
  108. data/pkgs/tile-0.8.2/doc/xml/combobox.tmml +184 -0
  109. data/pkgs/tile-0.8.2/doc/xml/dialog.tmml +195 -0
  110. data/pkgs/tile-0.8.2/doc/xml/entry.tmml +630 -0
  111. data/pkgs/tile-0.8.2/doc/xml/frame.tmml +98 -0
  112. data/pkgs/tile-0.8.2/doc/xml/image.tmml +101 -0
  113. data/pkgs/tile-0.8.2/doc/xml/label.tmml +154 -0
  114. data/pkgs/tile-0.8.2/doc/xml/labelframe.tmml +116 -0
  115. data/pkgs/tile-0.8.2/doc/xml/menubutton.tmml +80 -0
  116. data/pkgs/tile-0.8.2/doc/xml/notebook.tmml +306 -0
  117. data/pkgs/tile-0.8.2/doc/xml/paned.tmml +154 -0
  118. data/pkgs/tile-0.8.2/doc/xml/progressbar.tmml +151 -0
  119. data/pkgs/tile-0.8.2/doc/xml/radiobutton.tmml +109 -0
  120. data/pkgs/tile-0.8.2/doc/xml/scrollbar.tmml +233 -0
  121. data/pkgs/tile-0.8.2/doc/xml/separator.tmml +59 -0
  122. data/pkgs/tile-0.8.2/doc/xml/sizegrip.tmml +82 -0
  123. data/pkgs/tile-0.8.2/doc/xml/style.tmml +171 -0
  124. data/pkgs/tile-0.8.2/doc/xml/tile-intro.tmml +192 -0
  125. data/pkgs/tile-0.8.2/doc/xml/treeview.tmml +604 -0
  126. data/pkgs/tile-0.8.2/doc/xml/widget.tmml +372 -0
  127. data/pkgs/tile-0.8.2/entry.o +0 -0
  128. data/pkgs/tile-0.8.2/frame.o +0 -0
  129. data/pkgs/tile-0.8.2/generic/Makefile.in +221 -0
  130. data/pkgs/tile-0.8.2/generic/TODO +493 -0
  131. data/pkgs/tile-0.8.2/generic/altTheme.c +1172 -0
  132. data/pkgs/tile-0.8.2/generic/blink.c +168 -0
  133. data/pkgs/tile-0.8.2/generic/button.c +858 -0
  134. data/pkgs/tile-0.8.2/generic/cache.c +354 -0
  135. data/pkgs/tile-0.8.2/generic/clamTheme.c +974 -0
  136. data/pkgs/tile-0.8.2/generic/classicTheme.c +518 -0
  137. data/pkgs/tile-0.8.2/generic/configure +10334 -0
  138. data/pkgs/tile-0.8.2/generic/configure.in +100 -0
  139. data/pkgs/tile-0.8.2/generic/entry.c +1922 -0
  140. data/pkgs/tile-0.8.2/generic/frame.c +648 -0
  141. data/pkgs/tile-0.8.2/generic/gunk.h +44 -0
  142. data/pkgs/tile-0.8.2/generic/image.c +416 -0
  143. data/pkgs/tile-0.8.2/generic/label.c +663 -0
  144. data/pkgs/tile-0.8.2/generic/layout.c +1215 -0
  145. data/pkgs/tile-0.8.2/generic/manager.c +554 -0
  146. data/pkgs/tile-0.8.2/generic/manager.h +91 -0
  147. data/pkgs/tile-0.8.2/generic/notebook.c +1380 -0
  148. data/pkgs/tile-0.8.2/generic/paned.c +958 -0
  149. data/pkgs/tile-0.8.2/generic/pkgIndex.tcl.in +7 -0
  150. data/pkgs/tile-0.8.2/generic/progress.c +549 -0
  151. data/pkgs/tile-0.8.2/generic/scale.c +526 -0
  152. data/pkgs/tile-0.8.2/generic/scroll.c +253 -0
  153. data/pkgs/tile-0.8.2/generic/scrollbar.c +346 -0
  154. data/pkgs/tile-0.8.2/generic/separator.c +132 -0
  155. data/pkgs/tile-0.8.2/generic/square.c +306 -0
  156. data/pkgs/tile-0.8.2/generic/tagset.c +147 -0
  157. data/pkgs/tile-0.8.2/generic/tile.c +296 -0
  158. data/pkgs/tile-0.8.2/generic/tkElements.c +1280 -0
  159. data/pkgs/tile-0.8.2/generic/tkTheme.c +1708 -0
  160. data/pkgs/tile-0.8.2/generic/tkTheme.h +419 -0
  161. data/pkgs/tile-0.8.2/generic/tkThemeInt.h +45 -0
  162. data/pkgs/tile-0.8.2/generic/tkstate.c +268 -0
  163. data/pkgs/tile-0.8.2/generic/trace.c +145 -0
  164. data/pkgs/tile-0.8.2/generic/track.c +174 -0
  165. data/pkgs/tile-0.8.2/generic/treeview.c +3211 -0
  166. data/pkgs/tile-0.8.2/generic/ttk.decls +154 -0
  167. data/pkgs/tile-0.8.2/generic/ttkDecls.h +340 -0
  168. data/pkgs/tile-0.8.2/generic/ttkStubInit.c +61 -0
  169. data/pkgs/tile-0.8.2/generic/ttkStubLib.c +70 -0
  170. data/pkgs/tile-0.8.2/generic/widget.c +785 -0
  171. data/pkgs/tile-0.8.2/generic/widget.h +263 -0
  172. data/pkgs/tile-0.8.2/image.o +0 -0
  173. data/pkgs/tile-0.8.2/label.o +0 -0
  174. data/pkgs/tile-0.8.2/layout.o +0 -0
  175. data/pkgs/tile-0.8.2/library/altTheme.tcl +101 -0
  176. data/pkgs/tile-0.8.2/library/aquaTheme.tcl +62 -0
  177. data/pkgs/tile-0.8.2/library/button.tcl +85 -0
  178. data/pkgs/tile-0.8.2/library/clamTheme.tcl +139 -0
  179. data/pkgs/tile-0.8.2/library/classicTheme.tcl +108 -0
  180. data/pkgs/tile-0.8.2/library/combobox.tcl +439 -0
  181. data/pkgs/tile-0.8.2/library/cursors.tcl +36 -0
  182. data/pkgs/tile-0.8.2/library/defaults.tcl +118 -0
  183. data/pkgs/tile-0.8.2/library/dialog.tcl +274 -0
  184. data/pkgs/tile-0.8.2/library/entry.tcl +580 -0
  185. data/pkgs/tile-0.8.2/library/fonts.tcl +153 -0
  186. data/pkgs/tile-0.8.2/library/icons.tcl +105 -0
  187. data/pkgs/tile-0.8.2/library/keynav.tcl +192 -0
  188. data/pkgs/tile-0.8.2/library/menubutton.tcl +171 -0
  189. data/pkgs/tile-0.8.2/library/notebook.tcl +193 -0
  190. data/pkgs/tile-0.8.2/library/paned.tcl +87 -0
  191. data/pkgs/tile-0.8.2/library/progress.tcl +51 -0
  192. data/pkgs/tile-0.8.2/library/scale.tcl +54 -0
  193. data/pkgs/tile-0.8.2/library/scrollbar.tcl +125 -0
  194. data/pkgs/tile-0.8.2/library/sizegrip.tcl +77 -0
  195. data/pkgs/tile-0.8.2/library/tile.tcl +211 -0
  196. data/pkgs/tile-0.8.2/library/treeview.tcl +382 -0
  197. data/pkgs/tile-0.8.2/library/utils.tcl +254 -0
  198. data/pkgs/tile-0.8.2/library/winTheme.tcl +77 -0
  199. data/pkgs/tile-0.8.2/library/xpTheme.tcl +63 -0
  200. data/pkgs/tile-0.8.2/libtile0.8.2.so +0 -0
  201. data/pkgs/tile-0.8.2/libttkstub.a +0 -0
  202. data/pkgs/tile-0.8.2/license.terms +24 -0
  203. data/pkgs/tile-0.8.2/macosx/aquaTheme.c +1076 -0
  204. data/pkgs/tile-0.8.2/manager.o +0 -0
  205. data/pkgs/tile-0.8.2/notebook.o +0 -0
  206. data/pkgs/tile-0.8.2/paned.o +0 -0
  207. data/pkgs/tile-0.8.2/pkgIndex.tcl +3 -0
  208. data/pkgs/tile-0.8.2/progress.o +0 -0
  209. data/pkgs/tile-0.8.2/scale.o +0 -0
  210. data/pkgs/tile-0.8.2/scroll.o +0 -0
  211. data/pkgs/tile-0.8.2/scrollbar.o +0 -0
  212. data/pkgs/tile-0.8.2/separator.o +0 -0
  213. data/pkgs/tile-0.8.2/tagset.o +0 -0
  214. data/pkgs/tile-0.8.2/tclconfig/install-sh +119 -0
  215. data/pkgs/tile-0.8.2/tclconfig/tcl.m4 +4069 -0
  216. data/pkgs/tile-0.8.2/tclconfig/teax.m4 +109 -0
  217. data/pkgs/tile-0.8.2/tests/all.tcl +18 -0
  218. data/pkgs/tile-0.8.2/tests/bwidget.test +103 -0
  219. data/pkgs/tile-0.8.2/tests/cbtest.tcl +125 -0
  220. data/pkgs/tile-0.8.2/tests/combobox.test +51 -0
  221. data/pkgs/tile-0.8.2/tests/compound.tcl +92 -0
  222. data/pkgs/tile-0.8.2/tests/entry.test +285 -0
  223. data/pkgs/tile-0.8.2/tests/entrytest.tcl +78 -0
  224. data/pkgs/tile-0.8.2/tests/image.test +94 -0
  225. data/pkgs/tile-0.8.2/tests/labelframe.tcl +41 -0
  226. data/pkgs/tile-0.8.2/tests/labelframe.test +137 -0
  227. data/pkgs/tile-0.8.2/tests/layout.test +33 -0
  228. data/pkgs/tile-0.8.2/tests/misc.test +35 -0
  229. data/pkgs/tile-0.8.2/tests/nbtest.tcl +66 -0
  230. data/pkgs/tile-0.8.2/tests/notebook.test +500 -0
  231. data/pkgs/tile-0.8.2/tests/paned.test +298 -0
  232. data/pkgs/tile-0.8.2/tests/progress.test +92 -0
  233. data/pkgs/tile-0.8.2/tests/pwtest.tcl +90 -0
  234. data/pkgs/tile-0.8.2/tests/sbtest.tcl +79 -0
  235. data/pkgs/tile-0.8.2/tests/scrollbar.test +77 -0
  236. data/pkgs/tile-0.8.2/tests/sgtest.tcl +52 -0
  237. data/pkgs/tile-0.8.2/tests/testutils.tcl +20 -0
  238. data/pkgs/tile-0.8.2/tests/tile.test +674 -0
  239. data/pkgs/tile-0.8.2/tests/treetags.test +78 -0
  240. data/pkgs/tile-0.8.2/tests/treeview.test +563 -0
  241. data/pkgs/tile-0.8.2/tests/tvtest.tcl +332 -0
  242. data/pkgs/tile-0.8.2/tests/validate.test +278 -0
  243. data/pkgs/tile-0.8.2/tile.o +0 -0
  244. data/pkgs/tile-0.8.2/tkElements.o +0 -0
  245. data/pkgs/tile-0.8.2/tkTheme.o +0 -0
  246. data/pkgs/tile-0.8.2/tkstate.o +0 -0
  247. data/pkgs/tile-0.8.2/tools/genStubs.tcl +861 -0
  248. data/pkgs/tile-0.8.2/trace.o +0 -0
  249. data/pkgs/tile-0.8.2/track.o +0 -0
  250. data/pkgs/tile-0.8.2/treeview.o +0 -0
  251. data/pkgs/tile-0.8.2/ttkStubInit.o +0 -0
  252. data/pkgs/tile-0.8.2/ttkStubLib.o +0 -0
  253. data/pkgs/tile-0.8.2/widget.o +0 -0
  254. data/pkgs/tile-0.8.2/win/Tile.dsp +261 -0
  255. data/pkgs/tile-0.8.2/win/makefile.vc +527 -0
  256. data/pkgs/tile-0.8.2/win/monitor.c +164 -0
  257. data/pkgs/tile-0.8.2/win/nmakehlp.c +483 -0
  258. data/pkgs/tile-0.8.2/win/rules.vc +512 -0
  259. data/pkgs/tile-0.8.2/win/tile.rc +40 -0
  260. data/pkgs/tile-0.8.2/win/winTheme.c +734 -0
  261. data/pkgs/tile-0.8.2/win/xpTheme.c +1029 -0
  262. data/spec/app_spec.rb +48 -0
  263. data/spec/customer_spec.rb +31 -0
  264. data/spec/fixtures/graph.expectation +18 -0
  265. data/spec/payment_spec.rb +19 -0
  266. data/spec/pratt_spec.rb +148 -0
  267. data/spec/project_spec.rb +163 -0
  268. data/spec/rcov.opts +0 -0
  269. data/spec/spec.opts +1 -0
  270. data/spec/spec_helper.rb +21 -0
  271. data/spec/whence_spec.rb +54 -0
  272. data/tasks/pratt.rb +84 -0
  273. data/templates/model.eruby +12 -0
  274. data/templates/spec.eruby +8 -0
  275. data/views/env.rb +22 -0
  276. data/views/graph.eruby +20 -0
  277. data/views/invoice.eruby +148 -0
  278. data/views/main.rb +92 -0
  279. data/views/pid.eruby +3 -0
  280. data/views/pop.rb +94 -0
  281. data/views/pop2.rb +75 -0
  282. data/views/raw.eruby +11 -0
  283. metadata +390 -0
@@ -0,0 +1,48 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: separator</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8206658">NAME</a> � <a href="#SECTid82066d0">SYNOPSIS</a> � <a href="#SECTid8206798">DESCRIPTION</a> � <a href="#SECTid8206838">STANDARD OPTIONS</a> � <a href="#SECTid8206978">OPTIONS</a> � <a href="#SECTid8206b08">WIDGET COMMAND</a> � <a href="#SECTid8206c20">SEE ALSO</a> � <a href="#SECTid8206c70">KEYWORDS</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8206658">NAME</a></h2><p class="namesection">
14
+ <b class="names">ttk::separator - </b><br>Separator bar</p>
15
+ <h2><a name="SECTid82066d0">SYNOPSIS</a></h2><pre class="syntax">
16
+ <b>ttk::separator</b> <i class="m">pathName</i> ?<i class="m">options</i>?
17
+ </pre>
18
+ <h2><a name="SECTid8206798">DESCRIPTION</a></h2><p>A <b>separator</b> widget displays a horizontal or vertical separator bar.
19
+ </p>
20
+ <h2><a name="SECTid8206838">STANDARD OPTIONS</a></h2><div class="menu"><table class="menu" width="100%">
21
+ <tr>
22
+ <td width="25%"><a href="widget.html#stdopt_-class">-class</a></td><td width="25%"><a href="widget.html#stdopt_-cursor">-cursor</a></td><td width="25%"><a href="widget.html#stdopt_-state">-state</a></td><td width="25%"><a href="widget.html#stdopt_-style">-style</a></td>
23
+ </tr><tr><td width="25%"><a href="widget.html#stdopt_-takefocus">-takefocus</a></td></tr>
24
+ </table></div>
25
+ <h2><a name="SECTid8206978">OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
26
+ <thead><tr class="heading">
27
+ <th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
28
+ </tr></thead><tr class="syntax">
29
+ <td width="20%" align="left"><a name="option_-orient">-orient</a></td><td width="40%" align="left">orient</td><td width="40%" align="left">Orient</td>
30
+ </tr><tr class="desc">
31
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">One of <b>horizontal</b> or <b>vertical</b>.
32
+ Specifies the orientation of the separator.
33
+ </td>
34
+ </tr>
35
+ </table></div>
36
+ <h2><a name="SECTid8206b08">WIDGET COMMAND</a></h2><p>Separator widgets support the standard
37
+ <b>cget</b>, <b>configure</b>, <b>instate</b>, and <b>state</b>
38
+ methods. No other widget methods are used.
39
+ </p>
40
+ <h2><a name="SECTid8206c20">SEE ALSO</a></h2><p class="seealso">widget(n)</p>
41
+ <h2><a name="SECTid8206c70">KEYWORDS</a></h2><p class="keywords">
42
+ <a class="keyword" href="keyword-index.html#KW-widget">widget</a>, <a class="keyword" href="keyword-index.html#KW-separator">separator</a>
43
+ </p>
44
+ </div><hr class="navsep"><div class="navbar" align="center">
45
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
46
+ </div>
47
+ </body>
48
+ </html>
@@ -0,0 +1,62 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: sizegrip</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8206658">NAME</a> � <a href="#SECTid82066d0">SYNOPSIS</a> � <a href="#SECTid8206798">DESCRIPTION</a> � <a href="#SECTid8206860">STANDARD OPTIONS</a> � <a href="#SECTid82069a0">WIDGET COMMAND</a> � <a href="#SECTid8206ab8">PLATFORM-SPECIFIC NOTES</a> � <a href="#SECTid8206b58">EXAMPLES</a> � <a href="#SECTid8206bd0">BUGS</a> � <a href="#SECTid8206f40">SEE ALSO</a> � <a href="#SECTid8206f90">KEYWORDS</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8206658">NAME</a></h2><p class="namesection">
14
+ <b class="names">ttk::sizegrip - </b><br>A silly widget</p>
15
+ <h2><a name="SECTid82066d0">SYNOPSIS</a></h2><pre class="syntax">
16
+ <b>ttk::sizegrip</b> <i class="m">pathName</i> ?<i class="m">options</i>?
17
+ </pre>
18
+ <h2><a name="SECTid8206798">DESCRIPTION</a></h2><p>A <b>sizegrip</b> widget (also known as a <i>grow box</i>)
19
+ allows the user to resize the containing toplevel window
20
+ by pressing and dragging the grip.
21
+ </p>
22
+ <h2><a name="SECTid8206860">STANDARD OPTIONS</a></h2><div class="menu"><table class="menu" width="100%">
23
+ <tr>
24
+ <td width="25%"><a href="widget.html#stdopt_-class">-class</a></td><td width="25%"><a href="widget.html#stdopt_-cursor">-cursor</a></td><td width="25%"><a href="widget.html#stdopt_-state">-state</a></td><td width="25%"><a href="widget.html#stdopt_-style">-style</a></td>
25
+ </tr><tr><td width="25%"><a href="widget.html#stdopt_-takefocus">-takefocus</a></td></tr>
26
+ </table></div>
27
+ <h2><a name="SECTid82069a0">WIDGET COMMAND</a></h2><p>Sizegrip widgets support the standard
28
+ <b>cget</b>, <b>configure</b>, <b>instate</b>, and <b>state</b>
29
+ methods. No other widget methods are used.
30
+ </p>
31
+ <h2><a name="SECTid8206ab8">PLATFORM-SPECIFIC NOTES</a></h2><p>On Mac OSX, toplevel windows automatically include a built-in
32
+ size grip by default.
33
+ Adding an <b>ttk::sizegrip</b> there is harmless, since
34
+ the built-in grip will just mask the widget.
35
+ </p>
36
+ <h2><a name="SECTid8206b58">EXAMPLES</a></h2><pre class="example">
37
+ # Using pack:
38
+ pack [ttk::frame $top.statusbar] -side bottom -fill x
39
+ pack [ttk::sizegrip $top.statusbar.grip] -side right -anchor se
40
+
41
+ # Using grid:
42
+ grid [ttk::sizegrip $top.statusbar.grip] \
43
+ -row $lastRow -column $lastColumn -sticky se
44
+ # ... optional: add vertical scrollbar in $lastColumn,
45
+ # ... optional: add horizontal scrollbar in $lastRow
46
+ </pre>
47
+ <h2><a name="SECTid8206bd0">BUGS</a></h2><p>If the containing toplevel's position was specified
48
+ relative to the right or bottom of the screen
49
+ (e.g., <b>[wm geometry ...</b> <i>w</i><b>x</b><i>h</i><b>-</b><i>x</i><b>-</b><i>y</i><b>]</b>
50
+ instead of <b>[wm geometry ...</b> <i>w</i><b>x</b><i>h</i><b>+</b><i>x</i><b>+</b><i>y</i><b>]</b>),
51
+ the sizegrip widget will not resize the window.
52
+ </p><p>ttk::sizegrip widgets only support "southeast" resizing.
53
+ </p>
54
+ <h2><a name="SECTid8206f40">SEE ALSO</a></h2><p class="seealso">widget(n)</p>
55
+ <h2><a name="SECTid8206f90">KEYWORDS</a></h2><p class="keywords">
56
+ <a class="keyword" href="keyword-index.html#KW-widget">widget</a>, <a class="keyword" href="keyword-index.html#KW-sizegrip">sizegrip</a>, <a class="keyword" href="keyword-index.html#KW-growbox">grow box</a>
57
+ </p>
58
+ </div><hr class="navsep"><div class="navbar" align="center">
59
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
60
+ </div>
61
+ </body>
62
+ </html>
@@ -0,0 +1,172 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: style</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8206658">NAME</a> � <a href="#SECTid82066d0">SYNOPSIS</a> � <a href="#SECTid8206798">NOTES</a> � <a href="#SECTid8206838">DEFINITIONS</a> � <a href="#SECTid8206950">DESCRIPTION</a> � <a href="#SECTid82079b8">LAYOUTS</a> � <a href="#SECTid8207e68">SEE ALSO</a> � <a href="#SECTid8207f08">KEYWORDS</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8206658">NAME</a></h2><p class="namesection">
14
+ <b class="names">ttk::style - </b><br>Manipulate style database</p>
15
+ <h2><a name="SECTid82066d0">SYNOPSIS</a></h2><pre class="syntax">
16
+ <b>ttk::style</b> <i class="m">option</i> ?<i class="m">args</i>?
17
+ </pre>
18
+ <h2><a name="SECTid8206798">NOTES</a></h2><p>See also the Tcl'2004 conference presentation,
19
+ available at
20
+ <a href="http://tktable.sourceforge.net/tile/tile-tcl2004.pdf ">http://tktable.sourceforge.net/tile/tile-tcl2004.pdf
21
+ </a>
22
+ </p>
23
+ <h2><a name="SECTid8206838">DEFINITIONS</a></h2><p>Each widget is assigned a <i>style</i>,
24
+ which specifies the set of elements making up the widget
25
+ and how they are arranged, along with dynamic and default
26
+ settings for element options.
27
+ By default, the style name is the same as the widget's class;
28
+ this may be overridden by the <b>-style</b> option.
29
+ </p><p>A <i>theme</i> is a collection of elements and styles
30
+ which controls the overall look and feel of an application.
31
+ </p>
32
+ <h2><a name="SECTid8206950">DESCRIPTION</a></h2><p>The <b>ttk::style</b> command takes the following arguments:
33
+ </p><dl>
34
+
35
+ <dt>
36
+ <b>ttk::style configure</b> <i class="m">style</i> ?<i class="m">-option</i> ?<i class="m">value option value...</i>? ?</dt>
37
+ <dd>Sets the default value of the specified option(s) in <i>style</i>.
38
+ </dd>
39
+
40
+
41
+ <dt>
42
+ <b>ttk::style map</b> <i class="m">style</i> ?<i class="m">-option</i> <b>{</b> <i class="m">statespec value...</i> <b>}</b>?</dt>
43
+ <dd>Sets dynamic values of the specified option(s) in <i>style</i>.
44
+ Each <i>statespec / value</i> pair is examined in order;
45
+ the value corresponding to the first matching <i>statespec</i>
46
+ is used.
47
+ </dd>
48
+
49
+
50
+ <dt>
51
+ <b>ttk::style lookup</b> <i class="m">style</i> <i class="m">-option</i> ?<i class="m">state</i> ?<i class="m">default</i>??</dt>
52
+ <dd>Returns the value specified for <i>-option</i> in style <i>style</i>
53
+ in state <i>state</i>, using the standard lookup rules for element options.
54
+ <i>state</i> is a list of state names; if omitted,
55
+ it defaults to all bits off (the ``normal'' state).
56
+ If the <i>default</i> argument is present, it is used as a fallback
57
+ value in case no specification for <i>-option</i> is found.
58
+ </dd>
59
+
60
+
61
+ <dt>
62
+ <b>ttk::style layout</b> <i class="m">style</i> ?<i class="m">layoutSpec</i>?</dt>
63
+ <dd>Define the widget layout for style <i>style</i>.
64
+ See <a href="#SECTid82079b8">LAYOUTS</a> below for the format of <i>layoutSpec</i>.
65
+ If <i>layoutSpec</i> is omitted, return the layout specification
66
+ for style <i>style</i>.
67
+ </dd>
68
+
69
+
70
+ <dt>
71
+ <b>ttk::style element create</b> <i class="m">elementName</i> <i class="m">type</i> ?<i class="m">args...</i>?</dt>
72
+ <dd>Creates a new element in the current theme of type <i>type</i>.
73
+ The only built-in element type is <i>image</i> (see <i>image(n)</i>),
74
+ although themes may define other element types
75
+ (see <b>Ttk_RegisterElementFactory</b>).
76
+ </dd>
77
+
78
+
79
+ <dt><b>ttk::style element names</b></dt>
80
+ <dd>Returns the list of elements defined in the current theme.
81
+ </dd>
82
+
83
+
84
+ <dt>
85
+ <b>ttk::style element options</b> <i class="m">element</i>
86
+ </dt>
87
+ <dd>Returns the list of <i>element</i>'s options.
88
+ </dd>
89
+
90
+
91
+ <dt>
92
+ <b>ttk::style theme create</b> <i class="m">themeName</i> ?<b>-parent</b> <i class="m">basedon</i>? ?<b>-settings</b> <i class="m">script...</i> ?</dt>
93
+ <dd>Creates a new theme. It is an error if <i>themeName</i> already exists.
94
+ If <b>-parent</b> is specified, the new theme will inherit
95
+ styles, elements, and layouts from the parent theme <i>basedon</i>.
96
+ If <b>-settings</b> is present, <i>script</i> is evaluated in the
97
+ context of the new theme as per <b>ttk::style theme settings</b>.
98
+ </dd>
99
+
100
+
101
+ <dt>
102
+ <b>ttk::style theme settings</b> <i class="m">themeName</i> <i class="m">script</i>
103
+ </dt>
104
+ <dd>Temporarily sets the current theme to <i>themeName</i>,
105
+ evaluate <i>script</i>, then restore the previous theme.
106
+ Typically <i>script</i> simply defines styles and elements,
107
+ though arbitrary Tcl code may appear.
108
+ </dd>
109
+
110
+
111
+ <dt><b>ttk::style theme names</b></dt>
112
+ <dd>Returns a list of all known themes.
113
+ </dd>
114
+
115
+
116
+ <dt>
117
+ <b>ttk::style theme use</b> <i class="m">themeName</i>
118
+ </dt>
119
+ <dd>Sets the current theme to <i>themeName</i>, and refreshes all widgets.
120
+ </dd>
121
+
122
+ </dl>
123
+ <h2><a name="SECTid82079b8">LAYOUTS</a></h2><p>A <i>layout</i> specifies a list of elements, each followed
124
+ by one or more options specifying how to arrange the element.
125
+ The layout mechanism uses a simplified version of the <b class="cmd">pack</b>
126
+ geometry manager: given an initial cavity,
127
+ each element is allocated a parcel.
128
+ Valid options are:
129
+ </p><dl>
130
+
131
+ <dt>
132
+ <b>-side</b> <i class="m">side</i>
133
+ </dt>
134
+ <dd>Specifies which side of the cavity to place the element;
135
+ one of <b>left</b>, <b>right</b>, <b>top</b>, or <b>bottom</b>.
136
+ If omitted, the element occupies the entire cavity.
137
+ </dd>
138
+
139
+
140
+ <dt>
141
+ <b>-sticky</b> <b>[</b><i class="m">nswe</i><b>]</b>
142
+ </dt>
143
+ <dd>Specifies where the element is placed inside its allocated parcel.
144
+ </dd>
145
+
146
+
147
+ <dt>
148
+ <b>-children {</b> <i class="m">sublayout...</i> <b>}</b>
149
+ </dt>
150
+ <dd>Specifies a list of elements to place inside the element.
151
+ </dd>
152
+
153
+ </dl><p>For example:
154
+ </p><pre class="example">
155
+ ttk::style layout Horizontal.TScrollbar {
156
+ Scrollbar.trough -children {
157
+ Scrollbar.leftarrow -side left
158
+ Scrollbar.rightarrow -side right
159
+ Horizontal.Scrollbar.thumb -side left -sticky ew
160
+ }
161
+ }
162
+ </pre>
163
+ <h2><a name="SECTid8207e68">SEE ALSO</a></h2><p class="seealso">
164
+ <a href="tile-intro.html">tile-intro</a>, widget, pixmap</p>
165
+ <h2><a name="SECTid8207f08">KEYWORDS</a></h2><p class="keywords">
166
+ <a class="keyword" href="keyword-index.html#KW-style">style</a>, <a class="keyword" href="keyword-index.html#KW-theme">theme</a>, <a class="keyword" href="keyword-index.html#KW-appearance">appearance</a>
167
+ </p>
168
+ </div><hr class="navsep"><div class="navbar" align="center">
169
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
170
+ </div>
171
+ </body>
172
+ </html>
@@ -0,0 +1,164 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: intro</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8206658">NAME</a> � <a href="#SECTid82066d0">OVERVIEW</a> � <a href="#SECTid8206770">THEMES</a> � <a href="#SECTid8206928">ELEMENTS</a> � <a href="#SECTid8206d88">LAYOUTS</a> � <a href="#SECTid8206f40">STATES</a> � <a href="#SECTid82073f0">STYLES</a> � <a href="#SECTid8207530">SEE ALSO</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8206658">NAME</a></h2><p class="namesection">
14
+ <b class="names">tile_intro - </b><br>Introduction to the Tile theme engine</p>
15
+ <h2><a name="SECTid82066d0">OVERVIEW</a></h2><p>The tile widget set is based on a revised and enhanced version
16
+ of the
17
+ <a href="http://purl.org/tcl/tip/48">TIP #48
18
+ </a>style engine.
19
+ The main concepts are described below.
20
+ The basic idea is to separate, to the extent possible,
21
+ the code implementing a widget's behavior from
22
+ the code implementing its appearance.
23
+ Widget class bindings are primarily responsible for
24
+ maintaining the widget state and invoking callbacks;
25
+ all aspects of the widgets appearance is
26
+ </p>
27
+ <h2><a name="SECTid8206770">THEMES</a></h2><p>A <i>theme</i> is a collection of elements and styles
28
+ that determine the look and feel of the widget set.
29
+ Themes can be used to:
30
+ </p><ul>
31
+ <li>Isolate platform differences (X11 vs. classic Windows vs. XP vs. Aqua ...)
32
+ </li>
33
+ <li>Adapt to display limitations (low-color, grayscale, monochrome, tiny screens)
34
+ </li>
35
+ <li>Accessibility (high contrast, large type)
36
+ </li>
37
+ <li>Application suite branding
38
+ </li>
39
+ <li>Blend in with the rest of the desktop (Gnome, KDE, Java)
40
+ </li>
41
+ <li>And, of course: eye candy.
42
+ </li>
43
+ </ul>
44
+ <h2><a name="SECTid8206928">ELEMENTS</a></h2><p>An <i>element</i> displays an individual part of a widget.
45
+ For example, a vertical scrollbar widget contains <b>uparrow</b>,
46
+ <b>downarrow</b>, <b>trough</b> and <b>slider</b> elements.
47
+ </p><p>Element names use a recursive dotted notation.
48
+ For example, <b>uparrow</b> identifies a generic arrow element,
49
+ and <b>Scrollbar.uparrow</b> and <b>Combobox.uparrow</b> identify
50
+ widget-specific elements.
51
+ When looking for an element, the style engine looks for
52
+ the specific name first, and if an element of that name is
53
+ not found it looks for generic elements by stripping off
54
+ successive leading components of the element name.
55
+ </p><p>Like widgets, elements have <i>options</i> which
56
+ specify what to display and how to display it.
57
+ For example, the <b>text</b> element
58
+ (which displays a text string) has
59
+ <b>-text</b>, <b>-font</b>, <b>-foreground</b>, <b>-background</b>,
60
+ <b>-underline</b>, and <b>-width</b> options.
61
+ The value of an element option is taken from:
62
+ </p><ul>
63
+ <li>An option of the same name and type in the widget containing the element;
64
+ </li>
65
+ <li>A dynamic setting specified by <b>style map</b> and the current state;
66
+ </li>
67
+ <li>The default setting specified by <b>style configure</b>; or
68
+ </li>
69
+ <li>The element's built-in default value for the option.
70
+ </li>
71
+ </ul>
72
+ <h2><a name="SECTid8206d88">LAYOUTS</a></h2><p>A <i>layout</i> specifies which elements make up a widget
73
+ and how they are arranged.
74
+ The layout engine uses a simplified version of the <b class="cmd">pack</b>
75
+ algorithm: starting with an initial cavity equal to the size
76
+ of the widget, elements are allocated a parcel within the cavity along
77
+ the side specified by the <b>-side</b> option,
78
+ and placed within the parcel according to the <b>-sticky</b>
79
+ option.
80
+ For example, the layout for a horizontal scrollbar
81
+ </p><pre class="example">
82
+ ttk::style layout Horizontal.TScrollbar {
83
+ Scrollbar.trough -children {
84
+ Scrollbar.leftarrow -side left -sticky w
85
+ Scrollbar.rightarrow -side right -sticky e
86
+ Scrollbar.thumb -side left -expand true -sticky ew
87
+ }
88
+ }
89
+ </pre><p>By default, the layout for a widget is the same as its class name.
90
+ Some widgets may override this (for example, the <b>ttk::scrollbar</b>
91
+ widget chooses different layouts based on the <b>-orient</b> option).
92
+ </p>
93
+ <h2><a name="SECTid8206f40">STATES</a></h2><p>In standard Tk, many widgets have a <b>-state</b> option
94
+ which (in most cases) is either <b>normal</b> or <b>disabled</b>.
95
+ Some widgets support additional states, such
96
+ as the <b>entry</b> widget which has a <b>readonly</b> state
97
+ and the various flavors of buttons which have <b>active</b> state.
98
+ </p><p>The Tile widget set generalizes this idea:
99
+ every widget has a bitmap of independent state flags.
100
+ Widget state flags include <b>active</b>, <b>disabled</b>,
101
+ <b>pressed</b>, <b class="cmd">focus</b>, etc.,
102
+ (see <i>widget(n)</i> for the full list of state flags).
103
+ </p><p>Instead of a <b>-state</b> option, every widget now has
104
+ a <b>state</b> widget command which is used to set or query
105
+ the state.
106
+ A <i>state specification</i> is a list of symbolic state names
107
+ indicating which bits are set, each optionally prefixed with an
108
+ exclamation point indicating that the bit is cleared instead.
109
+ </p><p>For example, the class bindings for the <b>ttk::button</b>
110
+ widget are:
111
+ </p><pre class="example">
112
+ bind TButton &lt;Enter&gt; { %W state active }
113
+ bind TButton &lt;Leave&gt; { %W state !active }
114
+ bind TButton &lt;ButtonPress-1&gt; { %W state pressed }
115
+ bind TButton &lt;Button1-Leave&gt; { %W state !pressed }
116
+ bind TButton &lt;Button1-Enter&gt; { %W state pressed }
117
+ bind TButton &lt;ButtonRelease-1&gt; \
118
+ { %W instate {pressed} { %W state !pressed ; %W invoke } }
119
+ </pre><p>This specifies that the widget becomes <b>active</b> when
120
+ the pointer enters the widget, and inactive when it leaves.
121
+ Similarly it becomes <b>pressed</b> when the mouse button is pressed,
122
+ and <b>!pressed</b> on the ButtonRelease event.
123
+ In addition, the button unpresses if
124
+ pointer is dragged outside the widget while Button-1 is held down,
125
+ and represses if it's dragged back in.
126
+ Finally, when the mouse button is released, the widget's
127
+ <b>-command</b> is invoked, but only if the button is currently
128
+ in the <b>pressed</b> state.
129
+ (The actual bindings are a little more complicated than the above,
130
+ but not by much).
131
+ </p><p>
132
+ <i>Note to self: rewrite that paragraph. It's horrible.</i>
133
+ </p>
134
+ <h2><a name="SECTid82073f0">STYLES</a></h2><p>Each widget is associated with a <i>style</i>,
135
+ which specifies values for element options.
136
+ Style names use a recursive dotted notation like layouts and elements;
137
+ by default, widgets use the class name to look up a style in the current theme.
138
+ For example:
139
+ </p><pre class="example">
140
+ ttk::style configure TButton \
141
+ -background #d9d9d9 \
142
+ -foreground black \
143
+ -relief raised \
144
+ ;
145
+ </pre><p>Many elements are displayed differently depending on the widget state.
146
+ For example, buttons have a different background when they are active,
147
+ a different foreground when disabled, and a different relief when pressed.
148
+ The <b>style map</b> command specifies dynamic option settings
149
+ for a particular style:
150
+ </p><pre class="example">
151
+ ttk::style map TButton \
152
+ -background [list disabled #d9d9d9 active #ececec] \
153
+ -foreground [list disabled #a3a3a3] \
154
+ -relief [list {pressed !disabled} sunken] \
155
+ ;
156
+ </pre>
157
+ <h2><a name="SECTid8207530">SEE ALSO</a></h2><p class="seealso">widget(n), <a href="style.html">style(n)</a>, , <a href="http://purl.org/tcl/tip/48">TIP #48
158
+ </a>
159
+ </p>
160
+ </div><hr class="navsep"><div class="navbar" align="center">
161
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
162
+ </div>
163
+ </body>
164
+ </html>
@@ -0,0 +1,634 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: treeview</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8206658">NAME</a> � <a href="#SECTid82066d0">SYNOPSIS</a> � <a href="#SECTid8206798">DESCRIPTION</a> � <a href="#SECTid82069c8">STANDARD OPTIONS</a> � <a href="#SECTid8206b30">WIDGET OPTIONS</a> � <a href="#SECTid82074e0">WIDGET COMMAND</a> � <a href="#SECTid81eb7f0">ITEM OPTIONS</a> � <a href="#SECTid81ebd68">TAG OPTIONS</a> � <a href="#SECTid81ec060">COLUMN IDENTIFIERS</a> � <a href="#SECTid81ec4e8">VIRTUAL EVENTS</a> � <a href="#SECTid81ec7e0">SEE ALSO</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8206658">NAME</a></h2><p class="namesection">
14
+ <b class="names">ttk::treeview - </b><br>hierarchical multicolumn data display widget</p>
15
+ <h2><a name="SECTid82066d0">SYNOPSIS</a></h2><pre class="syntax">
16
+ <b>ttk::treeview</b> <i class="m">pathname</i> ?<i class="m">options</i>?
17
+ </pre>
18
+ <h2><a name="SECTid8206798">DESCRIPTION</a></h2><p>The treeview widget displays a hierarchical collection of items.
19
+ Each item has a textual label, an optional image,
20
+ and an optional list of data values.
21
+ The data values are displayed in successive columns after
22
+ the tree label.
23
+ </p><p>The order in which data values are displayed may be controlled
24
+ by setting the <b>-displaycolumns</b> widget option.
25
+ The tree widget can also display column headings.
26
+ Columns may be accessed by number or by symbolic names
27
+ listed in the <b>-columns</b> widget option;
28
+ see <a href="#SECTid81ec060">COLUMN IDENTIFIERS</a>.
29
+ </p><p>Each item is identified by a unique name.
30
+ The widget will generate item IDs if they are not supplied by the caller.
31
+ There is a distinguished root item, named <b>{}</b>.
32
+ The root item itself is not displayed;
33
+ its children appear at the top level of the hierarchy.
34
+ </p><p>Each item also has a list of <i>tags</i>,
35
+ which can be used to associate event bindings with individual items
36
+ and control the appearance of the item.
37
+ </p><p>Treeview widgets support horizontal and vertical scrolling with the
38
+ standard <b>-[xy]scrollcommand</b> options
39
+ and <b>[xy]view</b> widget commands.
40
+ </p>
41
+ <h2><a name="SECTid82069c8">STANDARD OPTIONS</a></h2><div class="menu"><table class="menu" width="100%">
42
+ <tr>
43
+ <td width="25%"><a href="widget.html#stdopt_-class">-class</a></td><td width="25%"><a href="widget.html#stdopt_-cursor">-cursor</a></td><td width="25%"><a href="widget.html#stdopt_-style">-style</a></td><td width="25%"><a href="widget.html#stdopt_-takefocus">-takefocus</a></td>
44
+ </tr><tr>
45
+ <td width="25%"><a href="widget.html#stdopt_-xscrollcommand">-xscrollcommand</a></td><td width="25%"><a href="widget.html#stdopt_-yscrollcommand">-yscrollcommand</a></td>
46
+ </tr>
47
+ </table></div>
48
+ <h2><a name="SECTid8206b30">WIDGET OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
49
+ <thead><tr class="heading">
50
+ <th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
51
+ </tr></thead><tr class="syntax">
52
+ <td width="20%" align="left"><a name="option_-columns">-columns</a></td><td width="40%" align="left">columns</td><td width="40%" align="left">Columns</td>
53
+ </tr><tr class="desc">
54
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A list of column identifiers,
55
+ specifying the number of columns and their names.
56
+ </td>
57
+ </tr><tr class="syntax">
58
+ <td width="20%" align="left"><a name="option_-displaycolumns">-displaycolumns</a></td><td width="40%" align="left">displayColumns</td><td width="40%" align="left">DisplayColumns</td>
59
+ </tr><tr class="desc">
60
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A list of column identifiers
61
+ (either symbolic names or integer indices)
62
+ specifying which data columns are displayed
63
+ and the order in which they appear,
64
+ or the string <b>#all</b>.
65
+ <br>If set to <b>#all</b> (the default), all columns are shown in the order given.
66
+ </td>
67
+ </tr><tr class="syntax">
68
+ <td width="20%" align="left"><a name="option_-height">-height</a></td><td width="40%" align="left">height</td><td width="40%" align="left">Height</td>
69
+ </tr><tr class="desc">
70
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies the number of rows which should be visible.
71
+ Note:
72
+ the requested width is determined from the sum of the column widths.
73
+ </td>
74
+ </tr><tr class="syntax">
75
+ <td width="20%" align="left"><a name="option_-padding">-padding</a></td><td width="40%" align="left">padding</td><td width="40%" align="left">Padding</td>
76
+ </tr><tr class="desc">
77
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies the internal padding for the widget.
78
+ The padding is a list of up to four length specifications;
79
+ see <b>Ttk_GetPaddingFromObj()</b> for details.
80
+ </td>
81
+ </tr><tr class="syntax">
82
+ <td width="20%" align="left"><a name="option_-selectmode">-selectmode</a></td><td width="40%" align="left">selectMode</td><td width="40%" align="left">SelectMode</td>
83
+ </tr><tr class="desc">
84
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Controls how the built-in class bindings manage the selection.
85
+ One of <b>extended</b>, <b>browse</b>, or <b>none</b>.
86
+ <br>If set to <b>extended</b> (the default), multiple items may be selected.
87
+ If <b>browse</b>, only a single item will be selected at a time.
88
+ If <b>none</b>, the selection will not be changed.
89
+ <br>Note that application code and tag bindings can set the selection
90
+ however they wish, regardless of the value of <b>-selectmode</b>.
91
+ </td>
92
+ </tr><tr class="syntax">
93
+ <td width="20%" align="left"><a name="option_-show">-show</a></td><td width="40%" align="left">show</td><td width="40%" align="left">Show</td>
94
+ </tr><tr class="desc">
95
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A list containing zero or more of the following values, specifying
96
+ which elements of the tree to display.
97
+ <dl>
98
+
99
+ <dt><b>tree</b></dt>
100
+ <dd>Display tree labels in column #0.
101
+ </dd>
102
+
103
+
104
+ <dt><b>headings</b></dt>
105
+ <dd>Display the heading row.
106
+ </dd>
107
+
108
+ </dl><p>The default is <b>tree headings</b>, i.e., show all elements.
109
+ </p><p>
110
+ <b>NOTE:</b> Column #0 always refers to the tree column,
111
+ even if <b>-show tree</b> is not specified.
112
+ </p>
113
+ </td>
114
+ </tr>
115
+ </table></div>
116
+ <h2><a name="SECTid82074e0">WIDGET COMMAND</a></h2><dl>
117
+
118
+ <dt>
119
+ <i class="m">pathname</i> <b>bbox</b> <i class="m">item</i> ?<i class="m">column</i>?</dt>
120
+ <dd>Returns the bounding box (relative to the treeview widget's window)
121
+ of the specified <i>item</i>
122
+ in the form <i>x y width height</i>.
123
+ If <i>column</i> is specified, returns the bounding box of that cell.
124
+ If the <i>item</i> is not visible
125
+ (i.e., if it is a descendant of a closed item or is scrolled offscreen),
126
+ returns the empty list.
127
+ </dd>
128
+
129
+
130
+ <dt>
131
+ <i class="m">pathname</i> <b>cget</b> <i class="m">option</i>
132
+ </dt>
133
+ <dd>Returns the current value of the specified <i>option</i>; see <i>widget(n)</i>.
134
+ </dd>
135
+
136
+
137
+ <dt>
138
+ <i class="m">pathname</i> <b>children</b> <i class="m">item</i> ?<i class="m">newchildren</i>?</dt>
139
+ <dd>If <i>newchildren</i> is not specified,
140
+ returns the list of children belonging to <i>item</i>.
141
+ <p>If <i>newchildren</i> is specified, replaces <i>item</i>'s child list
142
+ with <i>newchildren</i>.
143
+ Items in the old child list not present in the new child list
144
+ are detached from the tree.
145
+ None of the items in <i>newchildren</i> may be an ancestor
146
+ of <i>item</i>.
147
+ </p>
148
+ </dd>
149
+
150
+
151
+ <dt>
152
+ <i class="m">pathname</i> <b>column</b> <i class="m">column</i> ?<i class="m">-option</i> ?<i class="m">value -option value...</i>?</dt>
153
+ <dd>Query or modify the options for the specified <i>column</i>.
154
+ If no <i>-option</i> is specified,
155
+ returns a dictionary of option/value pairs.
156
+ If a single <i>-option</i> is specified,
157
+ returns the value of that option.
158
+ Otherwise, the options are updated with the specified values.
159
+ The following options may be set on each column:
160
+ <dl>
161
+
162
+ <dt>
163
+ <b>-id</b> <i class="m">name</i>
164
+ </dt>
165
+ <dd>The column name. This is a read-only option.
166
+ For example, [<i>$pathname</i> <b>column #</b><i>n</i> <b>-id</b>]
167
+ returns the data column associated with display column #<i>n</i>.
168
+ </dd>
169
+
170
+
171
+ <dt><b>-anchor</b></dt>
172
+ <dd>Specifies how the text in this column should be aligned
173
+ with respect to the cell. One of
174
+ <b>n</b>, <b>ne</b>, <b>e</b>, <b>se</b>,
175
+ <b>s</b>, <b>sw</b>, <b>w</b>, <b>nw</b>, or <b>center</b>.
176
+ </dd>
177
+
178
+
179
+ <dt><b>-minwidth</b></dt>
180
+ <dd>The minimum width of the column in pixels.
181
+ The treeview widget will not make the column any smaller than
182
+ <b>-minwidth</b> when the widget is resized or the user drags a
183
+ column separator.
184
+ </dd>
185
+
186
+
187
+ <dt><b>-stretch</b></dt>
188
+ <dd>Specifies whether or not the column's width should be adjusted
189
+ when the widget is resized.
190
+ </dd>
191
+
192
+
193
+ <dt>
194
+ <b>-width</b> <i class="m">w</i>
195
+ </dt>
196
+ <dd>The width of the column in pixels. Default is something reasonable,
197
+ probably 200 or so.
198
+ </dd>
199
+
200
+ </dl><p>Use <i>pathname column #0</i> to configure the tree column.
201
+ </p>
202
+ </dd>
203
+
204
+
205
+ <dt>
206
+ <i class="m">pathname</i> <b>configure</b> ?<i class="m">option</i>? ?<i class="m">value option value ...</i>?</dt>
207
+ <dd>Modify or query widget options; see <i>widget(n)</i>.
208
+ </dd>
209
+
210
+
211
+ <dt>
212
+ <i class="m">pathname</i> <b>delete</b> <i class="m">itemList</i>
213
+ </dt>
214
+ <dd>Deletes each of the items in <i>itemList</i> and all of their descendants.
215
+ The root item may not be deleted.
216
+ See also: <b>detach</b>.
217
+ </dd>
218
+
219
+
220
+ <dt>
221
+ <i class="m">pathname</i> <b>detach</b> <i class="m">itemList</i>
222
+ </dt>
223
+ <dd>Unlinks all of the specified items in <i>itemList</i> from the tree.
224
+ The items and all of their descendants are still present
225
+ and may be reinserted at another point in the tree
226
+ but will not be displayed.
227
+ The root item may not be detached.
228
+ See also: <b>delete</b>.
229
+ </dd>
230
+
231
+
232
+ <dt>
233
+ <i class="m">pathname</i> <b>exists</b> <i class="m">item</i>
234
+ </dt>
235
+ <dd>Returns 1 if the specified <i>item</i> is present in the tree,
236
+ 0 otherwise.
237
+ </dd>
238
+
239
+
240
+ <dt>
241
+ <i class="m">pathname</i> <b>focus</b> ?<i class="m">item</i>?</dt>
242
+ <dd>If <i>item</i> is specified, sets the focus item to <i>item</i>.
243
+ Otherwise, returns the current focus item, or <b>{}</b> if there is none.
244
+ </dd>
245
+
246
+
247
+ <dt>
248
+ <i class="m">pathname</i> <b>heading</b> <i class="m">column</i> ?<i class="m">-option</i> ?<i class="m">value -option value...</i>?</dt>
249
+ <dd>Query or modify the heading options for the specified <i>column</i>.
250
+ Valid options are:
251
+ <dl>
252
+
253
+ <dt>
254
+ <b>-text</b> <i class="m">text</i>
255
+ </dt>
256
+ <dd>The text to display in the column heading.
257
+ </dd>
258
+
259
+
260
+ <dt>
261
+ <b>-image</b> <i class="m">imageName</i>
262
+ </dt>
263
+ <dd>Specifies an image to display to the right of the column heading.
264
+ </dd>
265
+
266
+
267
+ <dt>
268
+ <b>-anchor</b> <i class="m">anchor</i>
269
+ </dt>
270
+ <dd>Specifies how the heading text should be aligned.
271
+ One of the standard Tk anchor values.
272
+ </dd>
273
+
274
+
275
+ <dt>
276
+ <b>-command</b> <i class="m">script</i>
277
+ </dt>
278
+ <dd>A script to evaluate when the heading label is pressed.
279
+ </dd>
280
+
281
+ </dl><p>Use <i>pathname heading #0</i> to configure the tree column heading.
282
+ </p>
283
+ </dd>
284
+
285
+
286
+ <dt>
287
+ <i class="m">pathname</i> <b>identify</b> <i class="m">component x y</i>
288
+ </dt>
289
+ <dd>Returns a description of the specified <i>component</i>
290
+ under the point given by <i>x</i> and <i>y</i>,
291
+ or the empty string if no such <i>component</i> is present at that position.
292
+ The following subcommands are supported:
293
+ <dl class="commandlist">
294
+
295
+ <dt>
296
+ <i class="m">pathname</i> <b>identify row</b> <i class="m">x y</i>
297
+ </dt>
298
+ <dd>Returns the item ID of the item at position <i>y</i>.
299
+ </dd>
300
+
301
+
302
+ <dt>
303
+ <i class="m">pathname</i> <b>identify column</b> <i class="m">x y</i>
304
+ </dt>
305
+ <dd>Returns the data column identifier of the cell at position <i>x</i>.
306
+ The tree column has ID <b>#0</b>.
307
+ </dd>
308
+
309
+ </dl><p>See <a href="#SECTid81ec060">COLUMN IDENTIFIERS</a> for a discussion of display columns
310
+ and data columns.
311
+ </p>
312
+ </dd>
313
+
314
+
315
+ <dt>
316
+ <i class="m">pathname</i> <b>index</b> <i class="m">item</i>
317
+ </dt>
318
+ <dd>Returns the integer index of <i>item</i> within its parent's list of children.
319
+ </dd>
320
+
321
+
322
+ <dt>
323
+ <i class="m">pathname</i> <b>insert</b> <i class="m">parent</i> <i class="m">index</i> ?<b>-id</b> <i class="m">id</i>? <i class="m">options...</i>
324
+ </dt>
325
+ <dd>Creates a new item.
326
+ <i>parent</i> is the item ID of the parent item,
327
+ or the empty string <b>{}</b>
328
+ to create a new top-level item.
329
+ <i>index</i> is an integer, or the value <b>end</b>, specifying where in the
330
+ list of <i>parent</i>'s children to insert the new item.
331
+ If <i>index</i> is less than or equal to zero,
332
+ the new node is inserted at the beginning;
333
+ if <i>index</i> is greater than or equal to the current number of children,
334
+ it is inserted at the end.
335
+ If <b>-id</b> is specified, it is used as the item identifier;
336
+ <i>id</i> must not already exist in the tree.
337
+ Otherwise, a new unique identifier is generated.
338
+ <p>
339
+ <i>pathname</i> <b>insert</b> returns the item identifier of the
340
+ newly created item.
341
+ See <a href="#SECTid81eb7f0">ITEM OPTIONS</a> for the list of available options.
342
+ </p>
343
+ </dd>
344
+
345
+
346
+ <dt>
347
+ <i class="m">pathname</i> <b>instate</b> <i class="m">statespec</i> ?<i class="m">script</i>?</dt>
348
+ <dd>Test the widget state; see <i>widget(n)</i>.
349
+ </dd>
350
+
351
+
352
+ <dt>
353
+ <i class="m">pathname</i> <b>item</b> <i class="m">item</i> ?<i class="m">-option</i> ?<i class="m">value -option value...</i>?</dt>
354
+ <dd>Query or modify the options for the specified <i>item</i>.
355
+ If no <i>-option</i> is specified,
356
+ returns a dictionary of option/value pairs.
357
+ If a single <i>-option</i> is specified,
358
+ returns the value of that option.
359
+ Otherwise, the item's options are updated with the specified values.
360
+ See <a href="#SECTid81eb7f0">ITEM OPTIONS</a> for the list of available options.
361
+ </dd>
362
+
363
+
364
+ <dt>
365
+ <i class="m">pathname</i> <b>move</b> <i class="m">item parent index</i>
366
+ </dt>
367
+ <dd>Moves <i>item</i> to position <i>index</i> in <i>parent</i>'s list of children.
368
+ It is illegal to move an item under one of its descendants.
369
+ <p>If <i>index</i> is less than or equal to zero, <i>item</i> is moved
370
+ to the beginning; if greater than or equal to the number of children,
371
+ it's moved to the end.
372
+ </p>
373
+ </dd>
374
+
375
+
376
+ <dt>
377
+ <i class="m">pathname</i> <b>next</b> <i class="m">item</i>
378
+ </dt>
379
+ <dd>Returns the identifier of <i>item</i>'s next sibling,
380
+ or <b>{}</b> if <i>item</i> is the last child of its parent.
381
+ </dd>
382
+
383
+
384
+ <dt>
385
+ <i class="m">pathname</i> <b>parent</b> <i class="m">item</i>
386
+ </dt>
387
+ <dd>Returns the ID of the parent of <i>item</i>,
388
+ or <b>{}</b> if <i>item</i> is at the top level of the hierarchy.
389
+ </dd>
390
+
391
+
392
+ <dt>
393
+ <i class="m">pathname</i> <b>prev</b> <i class="m">item</i>
394
+ </dt>
395
+ <dd>Returns the identifier of <i>item</i>'s previous sibling,
396
+ or <b>{}</b> if <i>item</i> is the first child of its parent.
397
+ </dd>
398
+
399
+
400
+ <dt>
401
+ <i class="m">pathname</i> <b>see</b> <i class="m">item</i>
402
+ </dt>
403
+ <dd>Ensure that <i>item</i> is visible:
404
+ sets all of <i>item</i>'s ancestors to <b>-open true</b>,
405
+ and scrolls the widget if necessary so that <i>item</i> is
406
+ within the visible portion of the tree.
407
+ </dd>
408
+
409
+
410
+ <dt>
411
+ <i class="m">pathname</i> <b>selection</b> ?<i class="m">selop</i> <i class="m">itemList</i>?</dt>
412
+ <dd>If <i>selop</i> is not specified, returns the list of selected items.
413
+ Otherwise, <i>selop</i> is one of the following:
414
+ <dl class="commandlist">
415
+
416
+ <dt>
417
+ <i class="m">pathname</i> <b>selection set</b> <i class="m">itemList</i>
418
+ </dt>
419
+ <dd>
420
+ <i>itemList</i> becomes the new selection.
421
+ </dd>
422
+
423
+
424
+ <dt>
425
+ <i class="m">pathname</i> <b>selection add</b> <i class="m">itemList</i>
426
+ </dt>
427
+ <dd>Add <i>itemList</i> to the selection
428
+ </dd>
429
+
430
+
431
+ <dt>
432
+ <i class="m">pathname</i> <b>selection remove</b> <i class="m">itemList</i>
433
+ </dt>
434
+ <dd>Remove <i>itemList</i> from the selection
435
+ </dd>
436
+
437
+
438
+ <dt>
439
+ <i class="m">pathname</i> <b>selection toggle</b> <i class="m">itemList</i>
440
+ </dt>
441
+ <dd>Toggle the selection state of each item in <i>itemList</i>.
442
+ </dd>
443
+
444
+ </dl>
445
+ </dd>
446
+
447
+
448
+ <dt>
449
+ <i class="m">pathname</i> <b>set</b> <i class="m">item</i> ?<i class="m">column</i> ?<i class="m">value</i>??</dt>
450
+ <dd>With one argument, returns a dictionary of column/value pairs
451
+ for the specified <i>item</i>.
452
+ With two arguments, returns the current value of the specified <i>column</i>.
453
+ With three arguments, sets the value of column <i>column</i>
454
+ in item <i>item</i> to the specified <i>value</i>.
455
+ See also <a href="#SECTid81ec060">COLUMN IDENTIFIERS</a>.
456
+ </dd>
457
+
458
+
459
+ <dt>
460
+ <i class="m">pathname</i> <b>state</b> ?<i class="m">stateSpec</i>?</dt>
461
+ <dd>Modify or query the widget state; see <i>widget(n)</i>.
462
+ </dd>
463
+
464
+
465
+ <dt>
466
+ <i class="m">pathName</i> <b>tag</b> <i class="m">args...</i>
467
+ </dt>
468
+ <dd><dl>
469
+
470
+ <dt>
471
+ <i class="m">pathName</i> <b>tag bind</b> <i class="m">tagName</i> ?<i class="m">sequence</i> ?<i class="m">script</i>??</dt>
472
+ <dd>Add a Tk binding script for the event sequence <i>sequence</i>
473
+ to the tag <i>tagName</i>. When an X event is delivered to an item,
474
+ binding scripts for each of the item's <b>-tags</b> are evaluated
475
+ in order as per <i>bindtags(n)</i>.
476
+ <p>
477
+ <b>&lt;KeyPress&gt;</b>, <b>&lt;KeyRelease&gt;</b>, and virtual events
478
+ are sent to the focus item.
479
+ <b>&lt;ButtonPress&gt;</b>, <b>&lt;ButtonRelease&gt;</b>, and <b>&lt;Motion&gt;</b> events
480
+ are sent to the item under the mouse pointer.
481
+ No other event types are supported.
482
+ </p><p>The binding <i>script</i> undergoes <b>%</b>-substitutions before
483
+ evaluation; see <b>bind(n)</b> for details.
484
+ </p>
485
+ </dd>
486
+
487
+
488
+ <dt>
489
+ <i class="m">pathName</i> <b>tag configure</b> <i class="m">tagName</i> ?<i class="m">option</i>? ?<i class="m">value option value...</i>?</dt>
490
+ <dd>Query or modify the options for the specified <i>tagName</i>.
491
+ If one or more <i>option/value</i> pairs are specified,
492
+ sets the value of those options for the specified tag.
493
+ If a single <i>option</i> is specified,
494
+ returns the value of that option
495
+ (or the empty string if the option has not been specified for <i>tagName</i>).
496
+ With no additional arguments,
497
+ returns a dictionary of the option settings for <i>tagName</i>.
498
+ See <a href="#SECTid81ebd68">TAG OPTIONS</a> for the list of available options.
499
+ </dd>
500
+
501
+ </dl></dd>
502
+
503
+
504
+ <dt>
505
+ <i class="m">pathName</i> <b>xview</b> <i class="m">args</i>
506
+ </dt>
507
+ <dd>Standard command for horizontal scrolling; see <i>widget(n)</i>.
508
+ </dd>
509
+
510
+
511
+ <dt>
512
+ <i class="m">pathName</i> <b>yview</b> <i class="m">args</i>
513
+ </dt>
514
+ <dd>Standard command for vertical scrolling; see <i>widget(n)</i>.
515
+
516
+ </dd>
517
+
518
+ </dl>
519
+ <h2><a name="SECTid81eb7f0">ITEM OPTIONS</a></h2><p>The following item options may be specified for items
520
+ in the <b>insert</b> and <b>item</b> widget commands.
521
+ </p><div class="table"><table width="100%" rules="none" cellpadding="5%">
522
+ <thead><tr class="heading">
523
+ <th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
524
+ </tr></thead><tr class="syntax">
525
+ <td width="20%" align="left"><a name="option_-text">-text</a></td><td width="40%" align="left">text</td><td width="40%" align="left">Text</td>
526
+ </tr><tr class="desc">
527
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The textual label to display for the item.
528
+ </td>
529
+ </tr><tr class="syntax">
530
+ <td width="20%" align="left"><a name="option_-image">-image</a></td><td width="40%" align="left">image</td><td width="40%" align="left">Image</td>
531
+ </tr><tr class="desc">
532
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A Tk image, displayed to the left of the label.
533
+ </td>
534
+ </tr><tr class="syntax">
535
+ <td width="20%" align="left"><a name="option_-values">-values</a></td><td width="40%" align="left">values</td><td width="40%" align="left">Values</td>
536
+ </tr><tr class="desc">
537
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The list of values associated with the item.
538
+ <br>Each item should have the same number of values as
539
+ the <b>-columns</b> widget option.
540
+ If there are fewer values than columns,
541
+ the remaining values are assumed empty.
542
+ If there are more values than columns,
543
+ the extra values are ignored.
544
+ </td>
545
+ </tr><tr class="syntax">
546
+ <td width="20%" align="left"><a name="option_-open">-open</a></td><td width="40%" align="left">open</td><td width="40%" align="left">Open</td>
547
+ </tr><tr class="desc">
548
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A boolean value indicating whether the item's children
549
+ should be displayed (<b>-open true</b>) or hidden (<b>-open false</b>).
550
+ </td>
551
+ </tr><tr class="syntax">
552
+ <td width="20%" align="left"><a name="option_-tags">-tags</a></td><td width="40%" align="left">tags</td><td width="40%" align="left">Tags</td>
553
+ </tr><tr class="desc">
554
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A list of tags associated with this item.
555
+ </td>
556
+ </tr>
557
+ </table></div>
558
+ <h2><a name="SECTid81ebd68">TAG OPTIONS</a></h2><p>The following options may be specified on tags:
559
+ </p><dl>
560
+
561
+ <dt>-foreground</dt>
562
+ <dd>Specifies the text foreground color.
563
+ </dd>
564
+
565
+
566
+ <dt>-background</dt>
567
+ <dd>Specifies the cell or item background color.
568
+ </dd>
569
+
570
+
571
+ <dt>-font</dt>
572
+ <dd>Specifies the font to use when drawing text.
573
+ </dd>
574
+
575
+
576
+ <dt>-image</dt>
577
+ <dd>Specifies the item image, in case the item's <b>-image</b> option is empty.
578
+ </dd>
579
+
580
+ </dl><p>
581
+ <i>(@@@ TODO: sort out order of precedence for options)</i>
582
+ </p>
583
+ <h2><a name="SECTid81ec060">COLUMN IDENTIFIERS</a></h2><p>Column identifiers take any of the following forms:
584
+ </p><ul>
585
+ <li>A symbolic name from the list of <b>-columns</b>.
586
+ </li>
587
+ <li>An integer <i>n</i>, specifying the <i>n</i>th data column.
588
+ </li>
589
+ <li>A string of the form <b>#</b><i>n</i>, where <i>n</i> is an integer,
590
+ specifying the <i>n</i>th display column.
591
+ </li>
592
+ </ul><p>
593
+ <b>NOTE:</b>
594
+ Item <b>-values</b> may be displayed in a different order than
595
+ the order in which they are stored.
596
+ </p><p>
597
+ <b>NOTE:</b> Column #0 always refers to the tree column,
598
+ even if <b>-show tree</b> is not specified.
599
+ </p><p>A <i>data column number</i> is an index into an item's <b>-values</b> list;
600
+ a <i>display column number</i> is the column number in the tree
601
+ where the values are displayed.
602
+ Tree labels are displayed in column #0.
603
+ If <b>-displaycolumns</b> is not set,
604
+ then data column <i>n</i> is displayed in display column <b>#</b><i>n+1</i>.
605
+ Again, <b>column #0 always refers to the tree column</b>.
606
+ </p>
607
+ <h2><a name="SECTid81ec4e8">VIRTUAL EVENTS</a></h2><p>The treeview widget generates the following virtual events.
608
+ </p><dl>
609
+
610
+ <dt>&lt;&lt;TreeviewSelect&gt;&gt;</dt>
611
+ <dd>Generated whenever the selection changes.
612
+ </dd>
613
+
614
+
615
+ <dt>&lt;&lt;TreeviewOpen&gt;&gt;</dt>
616
+ <dd>Generated just before setting the focus item to <b>-open true</b>.
617
+ </dd>
618
+
619
+
620
+ <dt>&lt;&lt;TreeviewClose&gt;&gt;</dt>
621
+ <dd>Generated just after setting the focus item to <b>-open false</b>.
622
+ </dd>
623
+
624
+ </dl><p>The <b class="cmd">focus</b> and <b class="cmd">selection</b> widget commands can be used
625
+ to determine the affected item or items.
626
+ In Tk 8.5, the affected item is also passed as the <b>-detail</b> field
627
+ of the virtual event.
628
+ </p>
629
+ <h2><a name="SECTid81ec7e0">SEE ALSO</a></h2><p class="seealso">widget(n), listbox(n), <a href="image.html">image(n)</a>, bind(n)</p>
630
+ </div><hr class="navsep"><div class="navbar" align="center">
631
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
632
+ </div>
633
+ </body>
634
+ </html>