OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [html/] [dialogshell.n.html] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
<HTML>
2
<HEAD>
3
<TITLE>iwidgets2.2.0 User Commands - dialogshell</TITLE>
4
</HEAD>
5
<BODY BGCOLOR="#FFFFFF">
6
<H1>iwidgets2.2.0 User Commands - dialogshell</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
     dialogshell - Create and manipulate a dialog shell widget
17
 
18
 
19
</PRE>
20
<H2>SYNOPSIS</H2><PRE>
21
     <STRONG>dialogshell</STRONG> <EM>pathName</EM> ?<EM>options</EM>?
22
 
23
 
24
</PRE>
25
<H2>INHERITANCE</H2><PRE>
26
     itk::Toplevel &lt;- Shell &lt;- Dialogshell
27
 
28
 
29
</PRE>
30
<H2>STANDARD OPTIONS</H2><PRE>
31
     <STRONG>background</STRONG>      <STRONG>cursor</STRONG>         <STRONG>foreground</STRONG>
32
 
33
     See the "options" manual entry for details on  the  standard
34
     options.
35
 
36
 
37
</PRE>
38
<H2>INHERITED OPTIONS</H2><PRE>
39
     <STRONG>master</STRONG>          <STRONG>modality</STRONG>       <STRONG>title</STRONG>
40
 
41
     See the "shell" manual entry for details on the above inher-
42
     ited options.
43
 
44
 
45
 
46
</PRE>
47
<H2>WIDGET-SPECIFIC OPTIONS</H2><PRE>
48
     Name:           <STRONG>buttonBoxPadX</STRONG>
49
     Class:          <STRONG>Pad</STRONG>
50
     Command-Line Switch:           <STRONG>-buttonboxpadx</STRONG>
51
 
52
          Specifies a  non-negative  padding  distance  to  leave
53
          between the button group and the outer edge of the but-
54
          ton box in the x direction.  The value may be given  in
55
          any  of  the  forms  accpetable  to  <STRONG>Tk_GetPixels</STRONG>.  The
56
          default is 5 pixels.
57
 
58
     Name:           <STRONG>buttonBoxPadY</STRONG>
59
     Class:          <STRONG>Pad</STRONG>
60
     Command-Line Switch:           <STRONG>-buttonboxpady</STRONG>
61
 
62
          Specifies a  non-negative  padding  distance  to  leave
63
          between the button group and the outer edge of the but-
64
          ton box in the y direction.  The value may be given  in
65
          any  of  the  forms  accpetable  to  <STRONG>Tk_GetPixels</STRONG>.  The
66
          default is 5 pixels.
67
 
68
     Name:           <STRONG>buttonBoxPos</STRONG>
69
     Class:          <STRONG>Position</STRONG>
70
     Command-Line Switch:           <STRONG>-buttonboxpos</STRONG>
71
 
72
          Attaches buttons to the given side of the dialog: <STRONG>n</STRONG>, <STRONG>s</STRONG>,
73
          <STRONG>e</STRONG> or <STRONG>w</STRONG>.  The default is s.
74
 
75
     Name:           <STRONG>padX</STRONG>
76
     Class:          <STRONG>Pad</STRONG>
77
     Command-Line Switch:           <STRONG>-padx</STRONG>
78
 
79
          Specifies a padding distance for the childsite  in  the
80
          X-direction   in   any   of  the  forms  acceptable  to
81
          <STRONG>Tk_GetPixels</STRONG>.  The default is 10.
82
 
83
     Name:           <STRONG>padY</STRONG>
84
     Class:          <STRONG>Pad</STRONG>
85
     Command-Line Switch:           <STRONG>-pady</STRONG>
86
 
87
          Specifies a padding distance for the childsite  in  the
88
          Y-direction   in   any   of  the  forms  acceptable  to
89
          <STRONG>Tk_GetPixels</STRONG>.  The default is 10.
90
 
91
     Name:           <STRONG>separator</STRONG>
92
     Class:          <STRONG>Separator</STRONG>
93
     Command-Line Switch:           <STRONG>-separator</STRONG>
94
 
95
          Specifies whether a line is drawn to separate the  but-
96
          tons  from  the dialog box contents in any of the forms
97
          acceptable to <STRONG>Tcl_GetBoolean</STRONG>.  The default is true.
98
 
99
     Name:           <STRONG>thickness</STRONG>
100
     Class:          <STRONG>Thickness</STRONG>
101
     Command-Line Switch:           <STRONG>-thickness</STRONG>
102
 
103
          Specifies the thickness of the separator in any of  the
104
          forms  acceptable  to  <STRONG>Tk_GetPixels</STRONG>.   The default is 3
105
          pixels.
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>dialogshell</STRONG> command creates a dialog shell  which  is  a
115
     top  level  widget  composed of a button box, separator, and
116
     child site area.  The class also has methods to control but-
117
     ton construction.
118
 
119
 
120
 
121
</PRE>
122
<H2>METHODS</H2><PRE>
123
     The <STRONG>dialogshell</STRONG> command create a new Tcl command whose  name
124
     is  <EM>pathName</EM>.   This  command  may be used to invoke various
125
     operations on the widget.   It  has  the  following  general
126
     form:
127
 
128
          <EM>pathName</EM> <EM>option</EM> ?<EM>arg</EM> <EM>arg</EM> ...?
129
 
130
     <EM>Option</EM> and the <EM>arg</EM>s determine the exact behavior of the com-
131
     mand.   The  following commands are possible for dialogshell
132
     widgets:
133
 
134
 
135
</PRE>
136
<H2>INHERITED METHODS</H2><PRE>
137
     <STRONG>activate</STRONG>        <STRONG>center</STRONG>         <STRONG>deactivate</STRONG>
138
 
139
     See the "shell" manual entry for details on the above inher-
140
     ited methods.
141
 
142
 
143
</PRE>
144
<H2>ASSOCIATED METHODS</H2><PRE>
145
     <STRONG>add</STRONG>             <STRONG>buttonconfigure</STRONG>                <STRONG>defaultdelete</STRONG>
146
     <STRONG>hide</STRONG>            <STRONG>index</STRONG>          <STRONG>insert</STRONG>          <STRONG>invoke</STRONG>
147
     <STRONG>show</STRONG>
148
 
149
     See the "buttonbox" manual entry for details on the  associ-
150
     ated methods.
151
 
152
 
153
</PRE>
154
<H2>WIDGET-SPECIFIC METHODS</H2><PRE>
155
     <EM>pathName</EM> <STRONG>cget</STRONG> <EM>option</EM>
156
          Returns the current value of the  configuration  option
157
          given  by  <EM>option</EM>.   <EM>Option</EM>  may have any of the values
158
          accepted by the <STRONG>dialogshell</STRONG> command.
159
 
160
     <EM>pathName</EM> <STRONG>childsite</STRONG>
161
          Returns the pathname of the child site widget.
162
 
163
     <EM>pathName</EM> <STRONG>configure</STRONG> ?<EM>option</EM>? ?<EM>value</EM> <EM>option</EM> <EM>value</EM> ...?
164
          Query  or  modify  the  configuration  options  of  the
165
          widget.   If  no  <EM>option</EM>  is  specified, returns a list
166
          describing all of the available  options  for  <EM>pathName</EM>
167
          (see  <STRONG>Tk_ConfigureInfo</STRONG> for information on the format of
168
          this list).  If <EM>option</EM> is specified with no <EM>value</EM>, then
169
          the  command  returns  a  list describing the one named
170
          option (this list will be identical to the  correspond-
171
          ing  sublist  of  the  value  returned  if no <EM>option</EM> is
172
          specified).  If one or more  <EM>option</EM> - <EM>value</EM>  pairs  are
173
          specified,  then  the command modifies the given widget
174
          option(s) to have the given value(s);  in this case the
175
          command  returns  an empty string.  <EM>Option</EM> may have any
176
          of the values accepted by the <STRONG>dialogshell</STRONG> command.
177
 
178
 
179
 
180
</PRE>
181
<H2>COMPONENTS</H2><PRE>
182
     Name:           <STRONG>dschildsite</STRONG>
183
     Class:          <STRONG>frame</STRONG>
184
 
185
          The dschildsite component is the user  child  site  for
186
          the  dialog shell.  See the "frame" widget manual entry
187
          for details on the dschildsite component item.
188
 
189
     Name:           <STRONG>separator</STRONG>
190
     Class:          <STRONG>frame</STRONG>
191
 
192
          The separator component devides the  area  between  the
193
          user  child  site  and the button box.  See the "frame"
194
          widget manual entry for details on the  separator  com-
195
          ponent item.
196
 
197
     Name:           <STRONG>bbox</STRONG>
198
     Class:          <STRONG>ButtonBox</STRONG>
199
 
200
          The bbox component is the  button  box  containing  the
201
          buttons  for  the  dialog  shell.   See the "ButtonBox"
202
          widget manual entry for details on the  bbox  component
203
          item.
204
 
205
 
206
 
207
</PRE>
208
<H2>EXAMPLE</H2><PRE>
209
           dialogshell .ds -modality none
210
 
211
           .ds add OK -text "OK"
212
           .ds add Cancel -text "Cancel"
213
           .ds default OK
214
 
215
           .ds activate
216
 
217
 
218
 
219
</PRE>
220
<H2>AUTHOR</H2><PRE>
221
     Mark L. Ulferts
222
 
223
 
224
</PRE>
225
<H2>KEYWORDS</H2><PRE>
226
     dialogshell, dialog, shell, widget
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
</PRE>
253
</BODY>
254
</HTML>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.