1 <TITLE>shell - Create and manipulate a shell widget</TITLE>
2 <H1>shell - Create and manipulate a shell widget</H1>
4 </pre><H2>SYNOPSIS</H2>
5 <B>shell<I> <I>pathName </I>?<I>options</I>?
6 </pre><H2>INHERITANCE</H2>
7 itk::Toplevel <- shell
8 </pre><H2>STANDARD OPTIONS</H2>
24 See the <A HREF="http://www.sco.com/Technology/tcl/man/tk_man/options.n.html"> "options" </A> manual entry for details on the standard options.
25 </pre><H2>INHERITED OPTIONS</H2>
39 See the "Toplevel" manual entry for details on the above inherited options.
41 </pre><H2>WIDGET-SPECIFIC OPTIONS</H2>
46 Command-Line Switch: <B>-height</B>
49 Specifies the height of the shell. The value may be specified in
50 any of the forms acceptable to <B>Tk_GetPixels</B>. A value of zero
51 causes the height to be adjusted to the required value based on
52 the size requests of the components placed in the childsite.
53 Otherwise, the height is fixed. The default is zero. NOTE: This
54 may cause some amount of flickering on slower machines. To prevent it
55 simply set the width and height to a appropriate value.
61 Command-Line Switch: <B>-master</B>
64 Defines the shell as being a transient window with the master window
65 given by the master option. The master window should be either another
66 existing toplevel window or {} for no master. The default is {} for
67 shells and "." for dialogs.
72 Class: <B>Modality</B>
73 Command-Line Switch: <B>-modality</B>
76 Allows the shell to grab control of the screen in one of three different ways:
77 <B>application</B>, <B>system</B>, or <B>none</B>.
78 Application modal prevents any other toplevel windows within the application
79 which are direct children of '.' from gaining focus. System modal locks
80 the screen and prevents all windows from gaining focus regardless of
81 application. A modality of none performs no grabs at all. The default
88 Command-Line Switch: <B>-padx</B>
91 Specifies a padding distance for the childsite in the X-direction in
92 any of the forms acceptable to <B>Tk_GetPixels</B>. The default is 10.
98 Command-Line Switch: <B>-pady</B>
101 Specifies a padding distance for the childsite in the Y-direction in
102 any of the forms acceptable to <B>Tk_GetPixels</B>. The default is 10.
108 Command-Line Switch: <B>-width</B>
111 Specifies the width of the shell. The value may be specified in
112 any of the forms acceptable to <B>Tk_GetPixels</B>. A value of zero
113 causes the width to be adjusted to the required value based on
114 the size requests of the components placed in the childsite.
115 Otherwise, the width is fixed. The default is zero. NOTE: This
116 may cause some amount of flickering on slower machines. To prevent it
117 simply set the width and height to a appropriate value.
121 </pre><H2>DESCRIPTION</H2>
123 The <B>shell</B> command creates a shell which is a top
124 level widget which supports modal operation.
126 </pre><H2>METHODS</H2>
128 The <B>shell</B> command create a new Tcl command whose
129 name is <I>pathName</I>. This command may be used to invoke various
130 operations on the widget. It has the following general form:
132 <I>pathName option </I>?<I>arg arg ...</I>?
134 <I>Option</I> and the <I>arg</I>s
135 determine the exact behavior of the command. The following
136 commands are possible for shell widgets:
137 </pre><H2>WIDGET-SPECIFIC METHODS</H2>
139 <DT> <I>pathName <B>activate</B>
141 <DD> Display the shell and wait based on the modality. For application
142 and system modal activations, perform a grab operation, and wait
143 for the result. The result may be returned via an argument to the
144 <B>deactivate</B> method.
147 <DT> <I>pathName <B>center</B> <I>?widget?</I>
149 <DD> Centers the shell with respect to another widget. The widget argument
150 is optional. If provided, it should be the path of another widget with
151 to center upon. If absent, then the shell will be centered on the screen
155 <DT> <I>pathName <B>cget</B> <I>option</I>
157 <DD> Returns the current value of the configuration option given
159 <I>Option</I> may have any of the values accepted by the <B>shell</B>
163 <DT> <I>pathName <B>childsite</B>
165 <DD> Returns the pathname of the child site widget.
168 <DT> <I>pathName</I> <B>configure</B> ?<I>option</I>? ?<I>value option value ...</I>?
170 <DD> Query or modify the configuration options of the widget.
171 If no <I>option</I> is specified, returns a list describing all of
172 the available options for <I>pathName</I> (see <B>Tk_ConfigureInfo</B> for
173 information on the format of this list). If <I>option</I> is specified
174 with no <I>value</I>, then the command returns a list describing the
175 one named option (this list will be identical to the corresponding
176 sublist of the value returned if no <I>option</I> is specified). If
177 one or more <I>option-value</I> pairs are specified, then the command
178 modifies the given widget option(s) to have the given value(s); in
179 this case the command returns an empty string.
180 <I>Option</I> may have any of the values accepted by the <B>shell</B>
184 <DT> <I>pathName <B>deactivate</B> ?<I>arg</I>?
186 <DD> Deactivate the display of the shell. The method takes an optional
187 argument to be passed to the <B>activate</B> method which returns the value.
188 The optional argument is only effective for application and system
192 </pre><H2>COMPONENTS</H2>
195 Name: <B>shellchildsite</B>
199 The shellchildsite component is the user child site for the shell. See
200 the "frame" widget manual entry for details on the shellchildsite
205 </pre><H2>EXAMPLE</H2>
207 shell .sh -modality application -padx 20 -pady 20 -title Shell
209 pack [label [.sh childsite].l -text SHELL]
214 </pre><H2>AUTHOR</H2>
215 <A HREF="mailto:mulferts@spd.dsccc.com">Mark L. Ulferts</A>
219 </pre><H2>KEYWORDS</H2>