arcadia 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/README +126 -123
  2. data/arcadia.rb +770 -756
  3. data/base/a-contracts.rb +130 -93
  4. data/base/a-ext.rb +280 -280
  5. data/base/a-libs.rb +5 -11
  6. data/base/a-utils.rb +235 -44
  7. data/conf/arcadia.conf +20 -16
  8. data/conf/arcadia.init.rb +0 -0
  9. data/conf/arcadia.res.rb +74 -0
  10. data/ext/ae-complete-code/ae-complete-code.conf +0 -0
  11. data/ext/ae-complete-code/ae-complete-code.rb +80 -79
  12. data/ext/ae-debug/ae-debug.conf +0 -0
  13. data/ext/ae-debug/ae-debug.rb +2 -6
  14. data/ext/ae-debug/debug1.57.rb +0 -0
  15. data/ext/ae-doc-code/ae-doc-code.conf +15 -0
  16. data/ext/ae-doc-code/ae-doc-code.rb +289 -0
  17. data/ext/ae-editor/ae-editor.conf +17 -8
  18. data/ext/ae-editor/ae-editor.rb +738 -396
  19. data/ext/ae-event-log/ae-event-log.conf +0 -0
  20. data/ext/ae-event-log/ae-event-log.rb +0 -0
  21. data/ext/ae-file-history/ae-file-history.conf +2 -2
  22. data/ext/ae-file-history/ae-file-history.rb +286 -290
  23. data/ext/ae-inspector/ae-inspector.conf +0 -0
  24. data/ext/ae-inspector/ae-inspector.rb +0 -0
  25. data/ext/ae-output-event/ae-output-event.conf +2 -2
  26. data/ext/ae-output/ae-output.conf +2 -2
  27. data/ext/ae-output/ae-output.rb +173 -178
  28. data/ext/ae-palette/ae-palette.conf +0 -0
  29. data/ext/ae-palette/ae-palette.rb +0 -0
  30. data/ext/ae-shell/ae-shell.conf +0 -0
  31. data/ext/ae-shell/ae-shell.rb +54 -54
  32. data/lib/tk/al-tk.rb +3076 -3082
  33. data/lib/tk/al-tk.res.rb +0 -0
  34. data/lib/tk/al-tkarcadia.rb +0 -0
  35. data/lib/tk/al-tkcustom.rb +0 -0
  36. data/lib/tkext/al-bwidget.rb +0 -0
  37. data/lib/tkext/al-iwidgets.rb +0 -0
  38. data/lib/tkext/al-tile.rb +0 -0
  39. data/lib/tkext/al-tktable.rb +0 -0
  40. data/tcl/BWidget-1.8.0/BWman/ArrowButton.html +276 -0
  41. data/tcl/BWidget-1.8.0/BWman/BWidget.html +228 -0
  42. data/tcl/BWidget-1.8.0/BWman/Button.html +273 -0
  43. data/tcl/BWidget-1.8.0/BWman/ButtonBox.html +264 -0
  44. data/tcl/BWidget-1.8.0/BWman/ComboBox.html +402 -0
  45. data/tcl/BWidget-1.8.0/BWman/Dialog.html +314 -0
  46. data/tcl/BWidget-1.8.0/BWman/DragSite.html +139 -0
  47. data/tcl/BWidget-1.8.0/BWman/DropSite.html +254 -0
  48. data/tcl/BWidget-1.8.0/BWman/DynamicHelp.html +248 -0
  49. data/tcl/BWidget-1.8.0/BWman/Entry.html +341 -0
  50. data/tcl/BWidget-1.8.0/BWman/Label.html +331 -0
  51. data/tcl/BWidget-1.8.0/BWman/LabelEntry.html +194 -0
  52. data/tcl/BWidget-1.8.0/BWman/LabelFrame.html +144 -0
  53. data/tcl/BWidget-1.8.0/BWman/ListBox.html +678 -0
  54. data/tcl/BWidget-1.8.0/BWman/MainFrame.html +283 -0
  55. data/tcl/BWidget-1.8.0/BWman/MessageDlg.html +218 -0
  56. data/tcl/BWidget-1.8.0/BWman/NoteBook.html +374 -0
  57. data/tcl/BWidget-1.8.0/BWman/PagesManager.html +180 -0
  58. data/tcl/BWidget-1.8.0/BWman/PanedWindow.html +142 -0
  59. data/tcl/BWidget-1.8.0/BWman/PanelFrame.html +153 -0
  60. data/tcl/BWidget-1.8.0/BWman/PasswdDlg.html +214 -0
  61. data/tcl/BWidget-1.8.0/BWman/ProgressBar.html +152 -0
  62. data/tcl/BWidget-1.8.0/BWman/ProgressDlg.html +145 -0
  63. data/tcl/BWidget-1.8.0/BWman/ScrollView.html +130 -0
  64. data/tcl/BWidget-1.8.0/BWman/ScrollableFrame.html +191 -0
  65. data/tcl/BWidget-1.8.0/BWman/ScrolledWindow.html +116 -0
  66. data/tcl/BWidget-1.8.0/BWman/SelectColor.html +164 -0
  67. data/tcl/BWidget-1.8.0/BWman/SelectFont.html +152 -0
  68. data/tcl/BWidget-1.8.0/BWman/Separator.html +77 -0
  69. data/tcl/BWidget-1.8.0/BWman/SpinBox.html +250 -0
  70. data/tcl/BWidget-1.8.0/BWman/StatusBar.html +147 -0
  71. data/tcl/BWidget-1.8.0/BWman/TitleFrame.html +107 -0
  72. data/tcl/BWidget-1.8.0/BWman/Tree.html +947 -0
  73. data/tcl/BWidget-1.8.0/BWman/Widget.html +502 -0
  74. data/tcl/BWidget-1.8.0/BWman/contents.html +84 -0
  75. data/tcl/BWidget-1.8.0/BWman/index.html +7 -0
  76. data/tcl/BWidget-1.8.0/BWman/navtree.html +41 -0
  77. data/tcl/BWidget-1.8.0/BWman/options.htm +458 -0
  78. data/tcl/BWidget-1.8.0/CHANGES.txt +266 -0
  79. data/tcl/BWidget-1.8.0/ChangeLog +1641 -0
  80. data/tcl/BWidget-1.8.0/LICENSE.txt +41 -0
  81. data/tcl/BWidget-1.8.0/README.txt +127 -0
  82. data/tcl/BWidget-1.8.0/arrow.tcl +551 -0
  83. data/tcl/BWidget-1.8.0/bitmap.tcl +94 -0
  84. data/tcl/BWidget-1.8.0/button.tcl +324 -0
  85. data/tcl/BWidget-1.8.0/buttonbox.tcl +403 -0
  86. data/tcl/BWidget-1.8.0/color.tcl +493 -0
  87. data/tcl/BWidget-1.8.0/combobox.tcl +809 -0
  88. data/tcl/BWidget-1.8.0/demo/basic.tcl +199 -0
  89. data/tcl/BWidget-1.8.0/demo/bwidget.xbm +46 -0
  90. data/tcl/BWidget-1.8.0/demo/demo.tcl +212 -0
  91. data/tcl/BWidget-1.8.0/demo/dnd.tcl +42 -0
  92. data/tcl/BWidget-1.8.0/demo/manager.tcl +141 -0
  93. data/tcl/BWidget-1.8.0/demo/select.tcl +59 -0
  94. data/tcl/BWidget-1.8.0/demo/tmpldlg.tcl +214 -0
  95. data/tcl/BWidget-1.8.0/demo/tree.tcl +260 -0
  96. data/tcl/BWidget-1.8.0/demo/x1.xbm +2258 -0
  97. data/tcl/BWidget-1.8.0/dialog.tcl +345 -0
  98. data/tcl/BWidget-1.8.0/dragsite.tcl +197 -0
  99. data/tcl/BWidget-1.8.0/dropsite.tcl +455 -0
  100. data/tcl/BWidget-1.8.0/dynhelp.tcl +625 -0
  101. data/tcl/BWidget-1.8.0/entry.tcl +469 -0
  102. data/tcl/BWidget-1.8.0/font.tcl +566 -0
  103. data/tcl/BWidget-1.8.0/images/bold.gif +0 -0
  104. data/tcl/BWidget-1.8.0/images/copy.gif +0 -0
  105. data/tcl/BWidget-1.8.0/images/cut.gif +0 -0
  106. data/tcl/BWidget-1.8.0/images/dragfile.gif +0 -0
  107. data/tcl/BWidget-1.8.0/images/dragicon.gif +0 -0
  108. data/tcl/BWidget-1.8.0/images/error.gif +0 -0
  109. data/tcl/BWidget-1.8.0/images/file.gif +0 -0
  110. data/tcl/BWidget-1.8.0/images/folder.gif +0 -0
  111. data/tcl/BWidget-1.8.0/images/hourglass.gif +0 -0
  112. data/tcl/BWidget-1.8.0/images/info.gif +0 -0
  113. data/tcl/BWidget-1.8.0/images/italic.gif +0 -0
  114. data/tcl/BWidget-1.8.0/images/minus.xbm +5 -0
  115. data/tcl/BWidget-1.8.0/images/new.gif +0 -0
  116. data/tcl/BWidget-1.8.0/images/opcopy.xbm +5 -0
  117. data/tcl/BWidget-1.8.0/images/open.gif +0 -0
  118. data/tcl/BWidget-1.8.0/images/openfold.gif +0 -0
  119. data/tcl/BWidget-1.8.0/images/oplink.xbm +5 -0
  120. data/tcl/BWidget-1.8.0/images/opmove.xbm +5 -0
  121. data/tcl/BWidget-1.8.0/images/overstrike.gif +0 -0
  122. data/tcl/BWidget-1.8.0/images/palette.gif +0 -0
  123. data/tcl/BWidget-1.8.0/images/passwd.gif +0 -0
  124. data/tcl/BWidget-1.8.0/images/paste.gif +0 -0
  125. data/tcl/BWidget-1.8.0/images/plus.xbm +5 -0
  126. data/tcl/BWidget-1.8.0/images/print.gif +0 -0
  127. data/tcl/BWidget-1.8.0/images/question.gif +0 -0
  128. data/tcl/BWidget-1.8.0/images/redo.gif +0 -0
  129. data/tcl/BWidget-1.8.0/images/save.gif +0 -0
  130. data/tcl/BWidget-1.8.0/images/target.xbm +9 -0
  131. data/tcl/BWidget-1.8.0/images/underline.gif +0 -0
  132. data/tcl/BWidget-1.8.0/images/undo.gif +0 -0
  133. data/tcl/BWidget-1.8.0/images/warning.gif +0 -0
  134. data/tcl/BWidget-1.8.0/init.tcl +40 -0
  135. data/tcl/BWidget-1.8.0/label.tcl +271 -0
  136. data/tcl/BWidget-1.8.0/labelentry.tcl +100 -0
  137. data/tcl/BWidget-1.8.0/labelframe.tcl +160 -0
  138. data/tcl/BWidget-1.8.0/lang/da.rc +52 -0
  139. data/tcl/BWidget-1.8.0/lang/de.rc +52 -0
  140. data/tcl/BWidget-1.8.0/lang/en.rc +52 -0
  141. data/tcl/BWidget-1.8.0/lang/es.rc +53 -0
  142. data/tcl/BWidget-1.8.0/lang/fr.rc +52 -0
  143. data/tcl/BWidget-1.8.0/listbox.tcl +1638 -0
  144. data/tcl/BWidget-1.8.0/mainframe.tcl +711 -0
  145. data/tcl/BWidget-1.8.0/messagedlg.tcl +128 -0
  146. data/tcl/BWidget-1.8.0/notebook.tcl +1164 -0
  147. data/tcl/BWidget-1.8.0/pagesmgr.tcl +294 -0
  148. data/tcl/BWidget-1.8.0/panedw.tcl +381 -0
  149. data/tcl/BWidget-1.8.0/panelframe.tcl +246 -0
  150. data/tcl/BWidget-1.8.0/passwddlg.tcl +178 -0
  151. data/tcl/BWidget-1.8.0/pkgIndex.tcl +47 -0
  152. data/tcl/BWidget-1.8.0/progressbar.tcl +208 -0
  153. data/tcl/BWidget-1.8.0/progressdlg.tcl +87 -0
  154. data/tcl/BWidget-1.8.0/scrollframe.tcl +226 -0
  155. data/tcl/BWidget-1.8.0/scrollview.tcl +254 -0
  156. data/tcl/BWidget-1.8.0/scrollw.tcl +280 -0
  157. data/tcl/BWidget-1.8.0/separator.tcl +75 -0
  158. data/tcl/BWidget-1.8.0/spinbox.tcl +331 -0
  159. data/tcl/BWidget-1.8.0/statusbar.tcl +422 -0
  160. data/tcl/BWidget-1.8.0/tests/entry.test +173 -0
  161. data/tcl/BWidget-1.8.0/titleframe.tcl +170 -0
  162. data/tcl/BWidget-1.8.0/tree.tcl +2228 -0
  163. data/tcl/BWidget-1.8.0/utils.tcl +645 -0
  164. data/tcl/BWidget-1.8.0/widget.tcl +1576 -0
  165. data/tcl/BWidget-1.8.0/wizard.tcl +1028 -0
  166. data/tcl/BWidget-1.8.0/xpm2image.tcl +115 -0
  167. metadata +141 -5
@@ -0,0 +1,273 @@
1
+ <HTML>
2
+ <HEAD><TITLE>Button</TITLE></HEAD>
3
+ <BODY BGCOLOR=white>
4
+ <DL><DT><I><A HREF="#descr">NAME</A></I></DT>
5
+ <DD><B>Button</B>
6
+ - Button widget with enhanced options
7
+ </DD></DL>
8
+ <DL>
9
+ <DT><I>CREATION</I></DT>
10
+ <DD><A HREF="#descr"><B>Button</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
11
+ </DL>
12
+ <DL>
13
+ <DT><I>STANDARD OPTIONS</I></DT>
14
+ <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
15
+ <TR>
16
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-activebackground">-activebackground</A></TD>
17
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-activeforeground">-activeforeground</A></TD>
18
+ </TR>
19
+ <TR>
20
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-anchor">-anchor</A></TD>
21
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-background">-background or -bg</A></TD>
22
+ </TD>
23
+ <TR>
24
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-bitmap">-bitmap</A></TD>
25
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-borderwidth">-borderwidth or -bd</A></TD>
26
+ </TR>
27
+ <TR>
28
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-cursor">-cursor</A></TD>
29
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-disabledforeground">-disabledforeground</A></TD>
30
+ </TR>
31
+ <TR>
32
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-font">-font</A></TD>
33
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-foreground">-foreground or -fg</A></TD>
34
+ </TD>
35
+ <TR>
36
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-highlightbackground">-highlightbackground</A></TD>
37
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-highlightcolor">-highlightcolor</A></TD>
38
+ </TR>
39
+ <TR>
40
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-highlightthickness">-highlightthickness</A></TD>
41
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-image">-image</A></TD>
42
+ </TR>
43
+ <TR>
44
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-justify">-justify</A></TD>
45
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-padx">-padx</A></TD>
46
+ </TR>
47
+ <TR>
48
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-pady">-pady</A></TD>
49
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-repeatdelay">-repeatdelay</A></TD>
50
+ </TR>
51
+ <TR>
52
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-repeatinterval">-repeatinterval</A></TD>
53
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-takefocus">-takefocus</A></TD>
54
+ </TR>
55
+ <TR>
56
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-text">-text</A></TD>
57
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-textvariable">-textvariable</A></TD>
58
+ </TR>
59
+ <TR>
60
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-wraplength">-wraplength</A></TD>
61
+ </TABLE></DD>
62
+ </DL>
63
+ <DL>
64
+ <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
65
+ <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
66
+ <TR>
67
+ <TD>&nbsp;&nbsp;<A HREF="#-armcommand">-armcommand</A></TD>
68
+ <TD>&nbsp;&nbsp;<A HREF="#-command">-command</A></TD>
69
+ </TR>
70
+ <TR>
71
+ <TD>&nbsp;&nbsp;<A HREF="#-default">-default</A></TD>
72
+ <TD>&nbsp;&nbsp;<A HREF="#-disarmcommand">-disarmcommand</A></TD>
73
+ </TR>
74
+ <TR>
75
+ <TD>&nbsp;&nbsp;<A HREF="#-height">-height</A></TD>
76
+ <TD>&nbsp;&nbsp;<A HREF="#-helptext">-helptext</A></TD>
77
+ </TR>
78
+ <TR>
79
+ <TD>&nbsp;&nbsp;<A HREF="#-helptype">-helptype</A></TD>
80
+ <TD>&nbsp;&nbsp;<A HREF="#-helpvar">-helpvar</A></TD>
81
+ </TR>
82
+ <TR>
83
+ <TD>&nbsp;&nbsp;<A HREF="#-name">-name</A></TD>
84
+ <TD>&nbsp;&nbsp;<A HREF="#-relief">-relief</A></TD>
85
+ </TR>
86
+ <TR>
87
+ <TD>&nbsp;&nbsp;<A HREF="#-state">-state</A></TD>
88
+ <TD>&nbsp;&nbsp;<A HREF="#-underline">-underline</A></TD>
89
+ </TR>
90
+ <TR>
91
+ <TD>&nbsp;&nbsp;<A HREF="#-width">-width</A></TD>
92
+ </TABLE></DD>
93
+ </DL>
94
+ <DL>
95
+ <DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
96
+ <DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
97
+ <I>option</I>
98
+ </DD>
99
+ <DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
100
+ ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
101
+ </DD>
102
+ <DD><I>pathName</I> <A HREF="#invoke"><B>invoke</B></A>
103
+ </DD>
104
+ </DL>
105
+ <BR><HR WIDTH="100%"><BR>
106
+ <B><A NAME="descr"></A>DESCRIPTION</B><BR>
107
+ <P>
108
+
109
+ Button widget extends the Tk button with new options.
110
+ <A HREF="DynamicHelp.html">DynamicHelp</A> options,
111
+ a new relief style, callback for <B>arm</B>/<B>disarm</B>, and
112
+ <B>repeatdelay</B>/<B>repeatinterval</B> options has been added.
113
+ </P>
114
+ <BR><HR WIDTH="50%"><BR>
115
+ <B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
116
+ <DL><DT><A NAME="-armcommand"><B>-armcommand</B></A></DT>
117
+ <DD>
118
+
119
+ Specifies a Tcl command to associate with the Button when mouse button 1 is pressed over the
120
+ Button. When <B>repeatdelay</B> or <B>repeatinterval</B> option is positive integer,
121
+ this command is repeatedly called if mouse pointer is over the Button and until mouse
122
+ button 1 is released.
123
+ </DD>
124
+ </DL>
125
+ <DL><DT><A NAME="-command"><B>-command</B></A></DT>
126
+ <DD>
127
+
128
+ Specifies a Tcl command to associate with the Button. This command
129
+ is typically invoked when mouse button 1 is released over the Button
130
+ window.
131
+ </DD>
132
+ </DL>
133
+ <DL><DT><A NAME="-default"><B>-default</B></A></DT>
134
+ <DD>
135
+
136
+ Specifies one of three states for the default ring: <B>normal</B>, <B>active</B>,
137
+ or <B>disabled</B>. In active state, the button is drawn with the platform specific
138
+ appearance for a default button. In normal state, the button is drawn with the platform
139
+ specific appearance for a non-default button, leaving enough space to draw the default
140
+ button appearance. The normal and active states will result in buttons of the same size.
141
+ In disabled state, the button is drawn with the non-default button appearance without
142
+ leaving space for the default appearance. The disabled state may result
143
+ in a smaller button than the active state.
144
+ </DD>
145
+ </DL>
146
+ <DL><DT><A NAME="-disarmcommand"><B>-disarmcommand</B></A></DT>
147
+ <DD>
148
+
149
+ Specifies a Tcl command to associate with the Button when mouse button 1 is released.
150
+ This command is called even if pointer is not over the Button, and always before
151
+ the command specified by <B>command</B> option.
152
+ It is typically used in conjuntion with <B>armcommand</B>, <B>repeatdelay</B> and
153
+ <B>repeatinterval</B>.
154
+ </DD>
155
+ </DL>
156
+ <DL><DT><A NAME="-height"><B>-height</B></A></DT>
157
+ <DD>
158
+
159
+ Specifies a desired height for the Button.
160
+ If an image or bitmap is being displayed in the Button then the value is in
161
+ screen units;
162
+ for text it is in lines of text.
163
+ If this option isn't specified, the Button's desired height is computed
164
+ from the size of the image or bitmap or text being displayed in it.
165
+ </DD>
166
+ </DL>
167
+ <DL><DT><A NAME="-helptext"><B>-helptext</B></A></DT>
168
+ <DD>
169
+
170
+ Text for dynamic help. If empty, no help is available for this widget.
171
+ See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
172
+ </DD>
173
+ </DL>
174
+ <DL><DT><A NAME="-helptype"><B>-helptype</B></A></DT>
175
+ <DD>
176
+ Type of dynamic help. Use <I>balloon</I> or <I>variable</I>.
177
+ See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
178
+ </DD>
179
+ </DL>
180
+ <DL><DT><A NAME="-helpvar"><B>-helpvar</B></A></DT>
181
+ <DD>
182
+ Variable to use when <B>helptype</B> option is <I>variable</I>.
183
+ See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
184
+ </DD>
185
+ </DL>
186
+ <DL><DT><A NAME="-name"><B>-name</B></A></DT>
187
+ <DD>
188
+
189
+ Specifies a standard name for the button. If the option <B>*<I>name</I>Name</B> is
190
+ found in the resources database, then <B>text</B> and <B>underline</B> options
191
+ are extracted from its value.
192
+
193
+ </DD>
194
+ </DL>
195
+ <DL><DT><A NAME="-relief"><B>-relief</B></A></DT>
196
+ <DD>
197
+
198
+ Specifies the 3-D effect desired for the widget. Acceptable values are standard values for
199
+ button relief (<B>raised</B>, <B>sunken</B>, <B>flat</B>, <B>ridge</B>, <B>solid</B>, and <B>groove</B>) and <B>link</B>, which specifies that button relief is <B>flat</B> when pointer
200
+ is outside the button and <B>raised</B> when pointer is inside.
201
+ </DD>
202
+ </DL>
203
+ <DL><DT><A NAME="-state"><B>-state</B></A></DT>
204
+ <DD>
205
+
206
+ Specifies one of three states for the Button: <B>normal</B>, <B>active</B>,
207
+ or <B>disabled</B>. In normal state the Button is displayed using the
208
+ <B>foreground</B> and <B>background</B> options. The active state is
209
+ typically used when the pointer is over the Button. In active state
210
+ the Button is displayed using the <B>activeforeground</B> and
211
+ <B>activebackground</B> options. Disabled state means that the Button
212
+ should be insensitive: the default bindings will refuse to activate
213
+ the widget and will ignore mouse button presses.
214
+ In this state the <B>disabledforeground</B> and
215
+ <B>background</B> options determine how the Button is displayed.
216
+ </DD>
217
+ </DL>
218
+ <DL><DT><A NAME="-underline"><B>-underline</B></A></DT>
219
+ <DD>
220
+
221
+ Specifies the integer index of a character to underline in the label of the button.
222
+ 0 corresponds to the first character of the text displayed, 1 to the next character,
223
+ and so on.
224
+ <BR>The binding <B>&lt;Alt-<I>char</I>&gt;</B> is automatically set on the toplevel
225
+ of the Button to call Button::<B>setfocus</B>.
226
+
227
+ </DD>
228
+ </DL>
229
+ <DL><DT><A NAME="-width"><B>-width</B></A></DT>
230
+ <DD>
231
+
232
+ If an image or bitmap is being displayed in the Button then the value is in
233
+ screen units;
234
+ for text it is in characters.
235
+ If this option isn't specified, the Button's desired width is computed
236
+ from the size of the image or bitmap or text being displayed in it.
237
+ </DD>
238
+ </DL>
239
+ <HR WIDTH="50%"><BR>
240
+ <B><A NAME="wc">WIDGET COMMAND</A></B><BR>
241
+ <DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
242
+ <I>option</I>
243
+ </DT><DD>
244
+
245
+ Returns the current value of the configuration option given by <I>option</I>.
246
+ <I>Option</I> may have any of the values accepted by the creation command.
247
+ </DD></DL>
248
+ <DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
249
+ ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
250
+ </DT><DD>
251
+
252
+ Query or modify the configuration options of the widget. If no <I>option</I> is specified,
253
+ returns a list describing all of the available options for <I>pathName</I>.
254
+ If <I>option</I> is specified with no <I>value</I>, then the command returns a list
255
+ describing the one named <I>option</I> (this list will be identical to the corresponding
256
+ sublist of the value returned if no <I>option</I> is specified). If one or
257
+ more <I>option-value</I> pairs are specified, then the command modifies the given widget
258
+ option(s) to have the given value(s); in this case the command returns an empty string.
259
+ <I>Option</I> may have any of the values accepted by the creation command.
260
+ Read-only options are not be modified.
261
+
262
+ </DD></DL>
263
+ <DL><DT><A NAME="invoke"><I>pathName</I> <B>invoke</B></A>
264
+ </DT><DD>
265
+
266
+ If Button <B>state</B> is not disabled, this invoke the commands of the Button.
267
+ Button is redisplayed with active color and sunken relief, and
268
+ <B>armcommand</B> is called. Then Button is redisplayed with
269
+ normal color and its defined relief, and <B>disarmcommand</B> then <B>command</B>
270
+ are called.
271
+ <P><B>invoke</B> is called when Button has input focus and user press the space bar.
272
+ </DD></DL>
273
+ </BODY></HTML>
@@ -0,0 +1,264 @@
1
+ <HTML>
2
+ <HEAD><TITLE>ButtonBox</TITLE></HEAD>
3
+ <BODY BGCOLOR=white>
4
+ <DL><DT><I><A HREF="#descr">NAME</A></I></DT>
5
+ <DD><B>ButtonBox</B>
6
+ - Set of buttons with horizontal or vertical layout
7
+ </DD></DL>
8
+ <DL>
9
+ <DT><I>CREATION</I></DT>
10
+ <DD><A HREF="#descr"><B>ButtonBox</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
11
+ </DL>
12
+ <DL>
13
+ <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
14
+ <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
15
+ <TR>
16
+ <TD>&nbsp;&nbsp;<A HREF="#-background">-background or -bg</A></TD>
17
+ <TD>&nbsp;&nbsp;<A HREF="#-default">-default</A></TR>
18
+ </TR>
19
+ <TR>
20
+ <TD>&nbsp;&nbsp;<A HREF="#-homogeneous">-homogeneous</A></TR>
21
+ <TD>&nbsp;&nbsp;<A HREF="#-orient">-orient</A></TR>
22
+ </TR>
23
+ <TR>
24
+ <TD>&nbsp;&nbsp;<A HREF="#-padx">-padx</A></TR>
25
+ <TD>&nbsp;&nbsp;<A HREF="#-pady">-pady</A></TR>
26
+ </TR>
27
+ <TR>
28
+ <TD>&nbsp;&nbsp;<A HREF="#-spacing">-spacing</A></TR>
29
+ <TD>&nbsp;&nbsp;<A HREF="#-state">-state</A></TR>
30
+ </TABLE></DD>
31
+ </DL>
32
+ <DL>
33
+ <DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
34
+ <DD><I>pathName</I> <A HREF="#add"><B>add</B></A>
35
+ ?<I>option value...</I>?
36
+ </DD>
37
+ <DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
38
+ <I>option</I>
39
+ </DD>
40
+ <DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
41
+ ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
42
+ </DD>
43
+ <DD><I>pathName</I> <A HREF="#delete"><B>delete</B></A>
44
+ <I>index</I>
45
+ </DD>
46
+ <DD><I>pathName</I> <A HREF="#index"><B>index</B></A>
47
+ <I>index</I>
48
+ </DD>
49
+ <DD><I>pathName</I> <A HREF="#insert"><B>insert</B></A>
50
+ <i>index</i> ?<I>option value...</I>?
51
+ </DD>
52
+ <DD><I>pathName</I> <A HREF="#invoke"><B>invoke</B></A>
53
+ <I>index</I>
54
+ </DD>
55
+ <DD><I>pathName</I> <A HREF="#itemcget"><B>itemcget</B></A>
56
+ <I>index</I>
57
+ <I>option</I>
58
+ </DD>
59
+ <DD><I>pathName</I> <A HREF="#itemconfigure"><B>itemconfigure</B></A>
60
+ <I>index</I>
61
+ ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
62
+ </DD>
63
+ <DD><I>pathName</I> <A HREF="#setfocus"><B>setfocus</B></A>
64
+ <I>index</I>
65
+ </DD>
66
+ </DL>
67
+ <BR><HR WIDTH="100%"><BR>
68
+ <B><A NAME="descr"></A>DESCRIPTION</B><BR>
69
+ <P>
70
+
71
+ ButtonBox layouts Button horizontally or vertically.
72
+ Some commands take an <I>index</I> as argument indicating on which
73
+ Button it work. This index may be specified in any of the following forms:
74
+ <P>
75
+ <DL COMPACT>
76
+ <DT>
77
+ <I>number</I>
78
+ <DD>
79
+ Specifies the Button numerically, where 0 corresponds
80
+ to the first added Button, 1 to the next, and so on.
81
+ <DT>
82
+ <B>end</B> or <B>last</B>
83
+ <DD>
84
+ Indicates the last item added.
85
+ <DT><B>default</B>
86
+ <DD>
87
+ Indicates the default Button.
88
+
89
+ <DT>
90
+ <i>name</i>
91
+ <DD>
92
+ Indicates the button whose <b>-name</b> option is <i>name</i>.
93
+
94
+ <DT>
95
+ <i>text</i>
96
+ <DD>
97
+ Indicates the button whose <b>-text</b> option is <i>text</i>.
98
+ </DL>
99
+
100
+ </P>
101
+ <BR><HR WIDTH="50%"><BR>
102
+ <B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
103
+ <DL><DT><A NAME="-background"><B>-background</B></A></DT>
104
+ <DD>
105
+
106
+ Specifies a default background color for all added buttons and for the frame.
107
+
108
+ </DD>
109
+ </DL>
110
+ <DL><DT><A NAME="-default"><B>-default</B></A></DT>
111
+ <DD>
112
+
113
+ Specifies the default button of the button box. The value is an integer
114
+ referencing the n-th added button, starting from 0.
115
+ If this value is -1 (the default), all button wil be drawn with their -default
116
+ option set to disabled, and this value can not be changed. <BR>If this value is
117
+ not -1, the associated button is drawn with -default option set to active and
118
+ the others are drawn with -default option set to normal. The value can be changed
119
+ by configure.
120
+
121
+ </DD>
122
+ </DL>
123
+ <DL><DT><A NAME="-homogeneous"><B>-homogeneous (read-only)</B></A></DT>
124
+ <DD>
125
+
126
+ Specifies wether or not buttons must have the same width for horizontal layout.
127
+
128
+ </DD>
129
+ </DL>
130
+ <DL><DT><A NAME="-orient"><B>-orient (read-only)</B></A></DT>
131
+ <DD>
132
+
133
+ Specifies the orientation of the button box. If this option is <B>horizontal</B>
134
+ (the default), buttons are added from top to bottom.
135
+ If this option is <B>vertical</B>, buttons are added from left to right.
136
+
137
+ </DD>
138
+ </DL>
139
+ <DL><DT><A NAME="-padx"><B>-padx</B></A></DT>
140
+ <DD>
141
+
142
+ Specifies a default value for the -padx option of all added buttons.
143
+
144
+ </DD>
145
+ </DL>
146
+ <DL><DT><A NAME="-pady"><B>-pady</B></A></DT>
147
+ <DD>
148
+
149
+ Specifies a default value for the -pady option of all added buttons.
150
+
151
+ </DD>
152
+ </DL>
153
+ <DL><DT><A NAME="-spacing"><B>-spacing</B></A></DT>
154
+ <DD>
155
+
156
+ Specifies the default spacing between buttons. This value can be changed before each
157
+ call to <B>add</B>.
158
+
159
+ </DD>
160
+ </DL>
161
+
162
+ <DL><DT><A NAME="-state"><B>-state</B></A></DT>
163
+ <DD>
164
+
165
+ Specifies a state for all the buttons in the button box. Can be any state supported by buttons.
166
+
167
+ </DD>
168
+ </DL>
169
+
170
+ <HR WIDTH="50%"><BR>
171
+ <B><A NAME="wc">WIDGET COMMAND</A></B><BR>
172
+ <DL><DT><A NAME="add"><I>pathName</I> <B>add</B></A>
173
+ ?<I>option value...</I>?
174
+ </DT><DD>
175
+
176
+ Add a button to the button box.
177
+ <P>
178
+ See <A HREF="Button.html"><B>Button</B></A> for description of options.
179
+ </DD></DL>
180
+ <DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
181
+ <I>option</I>
182
+ </DT><DD>
183
+
184
+ Returns the current value of the configuration option given by <I>option</I>.
185
+ <I>Option</I> may have any of the values accepted by the creation command.
186
+ </DD></DL>
187
+ <DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
188
+ ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
189
+ </DT><DD>
190
+
191
+ Query or modify the configuration options of the widget. If no <I>option</I> is specified,
192
+ returns a list describing all of the available options for <I>pathName</I>.
193
+ If <I>option</I> is specified with no <I>value</I>, then the command returns a list
194
+ describing the one named <I>option</I> (this list will be identical to the corresponding
195
+ sublist of the value returned if no <I>option</I> is specified). If one or
196
+ more <I>option-value</I> pairs are specified, then the command modifies the given widget
197
+ option(s) to have the given value(s); in this case the command returns an empty string.
198
+ <I>Option</I> may have any of the values accepted by the creation command.
199
+ Read-only options are not be modified.
200
+
201
+ </DD></DL>
202
+
203
+ <DL><DT><A NAME="delete"><I>pathName</I> <B>delete</B></A>
204
+ <I>index</I>
205
+ </DT><DD>
206
+
207
+ Delete the button at <i>index</i> from the button box.
208
+
209
+ </DD></DL>
210
+
211
+ <DL><DT><A NAME="index"><I>pathName</I> <B>index</B></A>
212
+ <I>index</I>
213
+ </DT><DD>
214
+
215
+ Return the numerical index corresponding to the item.
216
+
217
+ </DD></DL>
218
+
219
+ <DL><DT><A NAME="insert"><I>pathName</I> <B>insert</B></A>
220
+ <I>index</I> ?<I>option value...</I>?
221
+ </DT><DD>
222
+
223
+ Insert a new button into the button box before the given index.
224
+
225
+ </DD></DL>
226
+
227
+ <DL><DT><A NAME="invoke"><I>pathName</I> <B>invoke</B></A>
228
+ <I>index</I>
229
+ </DT><DD>
230
+
231
+ Invoke the Button given by <I>index</I>.
232
+
233
+ </DD></DL>
234
+ <DL><DT><A NAME="itemcget"><I>pathName</I> <B>itemcget</B></A>
235
+ <I>index</I>
236
+ <I>option</I>
237
+ </DT><DD>
238
+
239
+ Returns the current value of a configuration option for the item.
240
+ <I>Option</I> may have any of the values accepted by the item creation command.
241
+
242
+ </DD></DL>
243
+ <DL><DT><A NAME="itemconfigure"><I>pathName</I> <B>itemconfigure</B></A>
244
+ <I>index</I>
245
+ ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
246
+ </DT><DD>
247
+
248
+ This command is similar to the <B>configure</B> command, except that it applies to the
249
+ options for an individual item, whereas <B>configure</B> applies to the options for
250
+ the widget as a whole. <B>Options</B> may have any of the values accepted by the
251
+ item creation widget command. If options are specified, options are modified as indicated
252
+ in the command and the command returns an empty string. If no options are specified,
253
+ returns a list describing the current options for the item.
254
+ Read-only options are not be modified.
255
+
256
+ </DD></DL>
257
+ <DL><DT><A NAME="setfocus"><I>pathName</I> <B>setfocus</B></A>
258
+ <I>index</I>
259
+ </DT><DD>
260
+
261
+ Set the focus to the Button given by <I>index</I>.
262
+
263
+ </DD></DL>
264
+ </BODY></HTML>