| 1 |
578 |
markom |
<HTML>
|
| 2 |
|
|
<HEAD>
|
| 3 |
|
|
<TITLE>iwidgets2.2.0 User Commands - selectiondialog</TITLE>
|
| 4 |
|
|
</HEAD>
|
| 5 |
|
|
<BODY BGCOLOR="#FFFFFF">
|
| 6 |
|
|
<H1>iwidgets2.2.0 User Commands - selectiondialog</H1>
|
| 7 |
|
|
<HR>
|
| 8 |
|
|
<PRE>
|
| 9 |
|
|
|
| 10 |
|
|
</PRE>
|
| 11 |
|
|
<H2><HR ALIGN=LEFT WIDTH=70% SIZE=3></H2><PRE>
|
| 12 |
|
|
|
| 13 |
|
|
|
| 14 |
|
|
</PRE>
|
| 15 |
|
|
<H2>NAME</H2><PRE>
|
| 16 |
|
|
selectiondialog - Create and manipulate a selection dialog
|
| 17 |
|
|
widget
|
| 18 |
|
|
|
| 19 |
|
|
|
| 20 |
|
|
</PRE>
|
| 21 |
|
|
<H2>SYNOPSIS</H2><PRE>
|
| 22 |
|
|
<STRONG>selectiondialog</STRONG> <EM>pathName</EM> ?<EM>options</EM>?
|
| 23 |
|
|
|
| 24 |
|
|
|
| 25 |
|
|
</PRE>
|
| 26 |
|
|
<H2>INHERITANCE</H2><PRE>
|
| 27 |
|
|
itk::Toplevel <- Shell <- Dialogshell <- Dialog <- Selec-
|
| 28 |
|
|
tiondialog
|
| 29 |
|
|
|
| 30 |
|
|
|
| 31 |
|
|
</PRE>
|
| 32 |
|
|
<H2>STANDARD OPTIONS</H2><PRE>
|
| 33 |
|
|
<STRONG>activeBackground</STRONG> <STRONG>background</STRONG> <STRONG>borderWidthcursor</STRONG>
|
| 34 |
|
|
<STRONG>exportSelection</STRONG> <STRONG>foreground</STRONG> <STRONG>highlightColor</STRONG> <STRONG>highlightThickness</STRONG>
|
| 35 |
|
|
<STRONG>insertBackground</STRONG> <STRONG>insertBorderWidthinsertOffTimeinsertOnTime</STRONG>
|
| 36 |
|
|
<STRONG>insertWidth</STRONG> <STRONG>relief</STRONG> <STRONG>repeatDelay</STRONG> <STRONG>repeatInterval</STRONG>
|
| 37 |
|
|
<STRONG>selectBackground</STRONG> <STRONG>selectBorderWidthselectForeground</STRONG>
|
| 38 |
|
|
|
| 39 |
|
|
See the "options" manual entry for details on the standard
|
| 40 |
|
|
options.
|
| 41 |
|
|
|
| 42 |
|
|
|
| 43 |
|
|
</PRE>
|
| 44 |
|
|
<H2>ASSOCIATED OPTIONS</H2><PRE>
|
| 45 |
|
|
<STRONG>textBackground</STRONG> <STRONG>textFont</STRONG>
|
| 46 |
|
|
|
| 47 |
|
|
See the "entryfield" widget manual entry for details on the
|
| 48 |
|
|
above associated options.
|
| 49 |
|
|
|
| 50 |
|
|
<STRONG>labelFont</STRONG> <STRONG>labelMargin</STRONG>
|
| 51 |
|
|
|
| 52 |
|
|
See the "labeledwidget" widget manual entry for details on
|
| 53 |
|
|
the above associated options.
|
| 54 |
|
|
|
| 55 |
|
|
<STRONG>activeRelief</STRONG> <STRONG>elementBorderWidth</STRONG> <STRONG>jumptroughColor</STRONG>
|
| 56 |
|
|
|
| 57 |
|
|
See the "scrollbar" widget class manual entry for details on
|
| 58 |
|
|
the above associated options.
|
| 59 |
|
|
|
| 60 |
|
|
<STRONG>hscrollMode</STRONG> <STRONG>items</STRONG> <STRONG>sbWidth</STRONG> <STRONG>scrollMargin</STRONG>
|
| 61 |
|
|
<STRONG>textBackground</STRONG> <STRONG>textFont</STRONG> <STRONG>vscrollMode</STRONG>
|
| 62 |
|
|
|
| 63 |
|
|
See the "scrolledlistbox" widget class manual entry for
|
| 64 |
|
|
details on the above associated options.
|
| 65 |
|
|
<STRONG>childsitepos</STRONG> <STRONG>itemsCommand</STRONG> <STRONG>itemsLabel</STRONG> <STRONG>itemsLabelPos</STRONG>
|
| 66 |
|
|
<STRONG>itemsOn</STRONG> <STRONG>margin</STRONG> <STRONG>selectionCommandselectionLabel</STRONG>
|
| 67 |
|
|
<STRONG>selectionLabelPos</STRONG> <STRONG>selectionOn</STRONG>
|
| 68 |
|
|
|
| 69 |
|
|
See the "selectionbox" widget manual entry for details on
|
| 70 |
|
|
the above associated options.
|
| 71 |
|
|
|
| 72 |
|
|
|
| 73 |
|
|
|
| 74 |
|
|
</PRE>
|
| 75 |
|
|
<H2>INHERITED OPTIONS</H2><PRE>
|
| 76 |
|
|
<STRONG>buttonBoxPadX</STRONG> <STRONG>buttonBoxPadY</STRONG> <STRONG>buttonBoxPos</STRONG> <STRONG>padX</STRONG>
|
| 77 |
|
|
<STRONG>padY</STRONG> <STRONG>separator</STRONG> <STRONG>thickness</STRONG>
|
| 78 |
|
|
|
| 79 |
|
|
See the "dialogshell" widget manual entry for details on
|
| 80 |
|
|
the above inherited options.
|
| 81 |
|
|
|
| 82 |
|
|
<STRONG>master</STRONG> <STRONG>modality</STRONG> <STRONG>title</STRONG>
|
| 83 |
|
|
|
| 84 |
|
|
See the "shell" widget manual entry for details on the
|
| 85 |
|
|
above inherited options.
|
| 86 |
|
|
|
| 87 |
|
|
|
| 88 |
|
|
</PRE>
|
| 89 |
|
|
<H2>WIDGET-SPECIFIC OPTIONS</H2><PRE>
|
| 90 |
|
|
Name: <STRONG>height</STRONG>
|
| 91 |
|
|
Class: <STRONG>Height</STRONG>
|
| 92 |
|
|
Command-Line Switch: <STRONG>-height</STRONG>
|
| 93 |
|
|
|
| 94 |
|
|
Specifies the height of the selection dialog. The
|
| 95 |
|
|
value may be specified in any of the forms acceptable
|
| 96 |
|
|
to Tk_GetPixels. The default is 350 pixels.
|
| 97 |
|
|
|
| 98 |
|
|
Name: <STRONG>width</STRONG>
|
| 99 |
|
|
Class: <STRONG>Width</STRONG>
|
| 100 |
|
|
Command-Line Switch: <STRONG>-width</STRONG>
|
| 101 |
|
|
|
| 102 |
|
|
Specifies the width of the selection dialog. The value
|
| 103 |
|
|
may be specified in any of the forms acceptable to
|
| 104 |
|
|
Tk_GetPixels. The default is 300 pixels.
|
| 105 |
|
|
|
| 106 |
|
|
|
| 107 |
|
|
</PRE>
|
| 108 |
|
|
<H2><HR ALIGN=LEFT WIDTH=70% SIZE=3></H2><PRE>
|
| 109 |
|
|
|
| 110 |
|
|
|
| 111 |
|
|
|
| 112 |
|
|
</PRE>
|
| 113 |
|
|
<H2>DESCRIPTION</H2><PRE>
|
| 114 |
|
|
The <STRONG>selectiondialog</STRONG> command creates a selection box similar
|
| 115 |
|
|
to the OSF/Motif standard selection dialog composite widget.
|
| 116 |
|
|
The selectiondialog is derived from the Dialog class and is
|
| 117 |
|
|
composed of a selectionbox with commands to manipulate the
|
| 118 |
|
|
dialog buttons.
|
| 119 |
|
|
|
| 120 |
|
|
|
| 121 |
|
|
|
| 122 |
|
|
</PRE>
|
| 123 |
|
|
<H2>METHODS</H2><PRE>
|
| 124 |
|
|
The <STRONG>selectiondialog</STRONG> command creates a new Tcl command whose
|
| 125 |
|
|
name is <EM>pathName</EM>. This command may be used to invoke vari-
|
| 126 |
|
|
ous operations on the widget. It has the following general
|
| 127 |
|
|
form:
|
| 128 |
|
|
|
| 129 |
|
|
<EM>pathName</EM> <EM>option</EM> ?<EM>arg</EM> <EM>arg</EM> ...?
|
| 130 |
|
|
|
| 131 |
|
|
<EM>Option</EM> and the <EM>arg</EM>s determine the exact behavior of the com-
|
| 132 |
|
|
mand. The following commands are possible for selectiondia-
|
| 133 |
|
|
log widgets:
|
| 134 |
|
|
|
| 135 |
|
|
|
| 136 |
|
|
</PRE>
|
| 137 |
|
|
<H2>ASSOCIATED METHODS</H2><PRE>
|
| 138 |
|
|
<STRONG>childsite</STRONG> <STRONG>clear</STRONG> <STRONG>get</STRONG> <STRONG>insert</STRONG>
|
| 139 |
|
|
<STRONG>selectitem</STRONG>
|
| 140 |
|
|
|
| 141 |
|
|
See the "selectionbox" widget manual entry for details on
|
| 142 |
|
|
the above associated methods.
|
| 143 |
|
|
|
| 144 |
|
|
<STRONG>curselection</STRONG> <STRONG>delete</STRONG> <STRONG>index</STRONG> <STRONG>nearest</STRONG>
|
| 145 |
|
|
<STRONG>scan</STRONG> <STRONG>selection</STRONG> <STRONG>size</STRONG>
|
| 146 |
|
|
|
| 147 |
|
|
See the "listbox" widget manual entry for details on the
|
| 148 |
|
|
above associated methods.
|
| 149 |
|
|
|
| 150 |
|
|
|
| 151 |
|
|
</PRE>
|
| 152 |
|
|
<H2>INHERITED METHODS</H2><PRE>
|
| 153 |
|
|
<STRONG>add</STRONG> <STRONG>buttonconfigure</STRONG> <STRONG>defaulthide</STRONG>
|
| 154 |
|
|
<STRONG>invoke</STRONG> <STRONG>show</STRONG>
|
| 155 |
|
|
|
| 156 |
|
|
See the "buttonbox" widget manual entry for details on the
|
| 157 |
|
|
above inherited methods.
|
| 158 |
|
|
|
| 159 |
|
|
<STRONG>activate</STRONG> <STRONG>center</STRONG> <STRONG>deactivate</STRONG>
|
| 160 |
|
|
|
| 161 |
|
|
See the "shell" widget manual entry for details on the above
|
| 162 |
|
|
inherited methods.
|
| 163 |
|
|
|
| 164 |
|
|
|
| 165 |
|
|
</PRE>
|
| 166 |
|
|
<H2>WIDGET-SPECIFIC METHODS</H2><PRE>
|
| 167 |
|
|
<EM>pathName</EM> <STRONG>cget</STRONG> <EM>option</EM>
|
| 168 |
|
|
Returns the current value of the configuration option
|
| 169 |
|
|
given by <EM>option</EM>. <EM>Option</EM> may have any of the values
|
| 170 |
|
|
accepted by the <STRONG>selectiondialog</STRONG> command.
|
| 171 |
|
|
|
| 172 |
|
|
<EM>pathName</EM> <STRONG>configure</STRONG> ?<EM>option</EM>? ?<EM>value</EM> <EM>option</EM> <EM>value</EM> ...?
|
| 173 |
|
|
Query or modify the configuration options of the
|
| 174 |
|
|
widget. If no <EM>option</EM> is specified, returns a list
|
| 175 |
|
|
describing all of the available options for <EM>pathName</EM>
|
| 176 |
|
|
(see <STRONG>Tk_ConfigureInfo</STRONG> for information on the format of
|
| 177 |
|
|
this list). If <EM>option</EM> is specified with no <EM>value</EM>, then
|
| 178 |
|
|
the command returns a list describing the one named
|
| 179 |
|
|
option (this list will be identical to the correspond-
|
| 180 |
|
|
ing sublist of the value returned if no <EM>option</EM> is
|
| 181 |
|
|
specified). If one or more <EM>option</EM> - <EM>value</EM> pairs are
|
| 182 |
|
|
specified, then the command modifies the given widget
|
| 183 |
|
|
option(s) to have the given value(s); in this case the
|
| 184 |
|
|
command returns an empty string. <EM>Option</EM> may have any
|
| 185 |
|
|
of the values accepted by the <STRONG>selectiondialog</STRONG> command.
|
| 186 |
|
|
|
| 187 |
|
|
|
| 188 |
|
|
|
| 189 |
|
|
</PRE>
|
| 190 |
|
|
<H2>COMPONENTS</H2><PRE>
|
| 191 |
|
|
Name: <STRONG>sb</STRONG>
|
| 192 |
|
|
Class: <STRONG>Selectionbox</STRONG>
|
| 193 |
|
|
|
| 194 |
|
|
The sb component is the selection box for the selection
|
| 195 |
|
|
dialog.
|
| 196 |
|
|
See the "selectionbox" widget manual entry for details
|
| 197 |
|
|
on the sb component item.
|
| 198 |
|
|
|
| 199 |
|
|
|
| 200 |
|
|
|
| 201 |
|
|
</PRE>
|
| 202 |
|
|
<H2>EXAMPLE</H2><PRE>
|
| 203 |
|
|
option add *textBackground GhostWhite
|
| 204 |
|
|
|
| 205 |
|
|
selectiondialog .sd
|
| 206 |
|
|
.sd activate
|
| 207 |
|
|
|
| 208 |
|
|
|
| 209 |
|
|
|
| 210 |
|
|
</PRE>
|
| 211 |
|
|
<H2>AUTHOR</H2><PRE>
|
| 212 |
|
|
Mark L. Ulferts
|
| 213 |
|
|
|
| 214 |
|
|
|
| 215 |
|
|
</PRE>
|
| 216 |
|
|
<H2>KEYWORDS</H2><PRE>
|
| 217 |
|
|
selectiondialog, selectionbox, dialog, dialogshell, shell,
|
| 218 |
|
|
widget
|
| 219 |
|
|
|
| 220 |
|
|
|
| 221 |
|
|
|
| 222 |
|
|
|
| 223 |
|
|
|
| 224 |
|
|
|
| 225 |
|
|
|
| 226 |
|
|
|
| 227 |
|
|
|
| 228 |
|
|
|
| 229 |
|
|
|
| 230 |
|
|
|
| 231 |
|
|
|
| 232 |
|
|
|
| 233 |
|
|
|
| 234 |
|
|
|
| 235 |
|
|
|
| 236 |
|
|
|
| 237 |
|
|
|
| 238 |
|
|
|
| 239 |
|
|
|
| 240 |
|
|
|
| 241 |
|
|
|
| 242 |
|
|
|
| 243 |
|
|
|
| 244 |
|
|
|
| 245 |
|
|
|
| 246 |
|
|
|
| 247 |
|
|
|
| 248 |
|
|
|
| 249 |
|
|
|
| 250 |
|
|
|
| 251 |
|
|
|
| 252 |
|
|
|
| 253 |
|
|
</PRE>
|
| 254 |
|
|
</BODY>
|
| 255 |
|
|
</HTML>
|