Debian Codegraph @

info/gcl-tk/tk_002ddialog.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>tk-dialog (GCL TK Manual)</title>
7
8 <meta name="description" content="tk-dialog (GCL TK Manual)">
9 <meta name="keywords" content="tk-dialog (GCL TK Manual)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="wm.html#SEC_Contents" rel="contents" title="Table of Contents">
15 <link href="Control.html" rel="up" title="Control">
16 <link href="exit.html" rel="next" title="exit">
17 <link href="destroy.html" rel="prev" title="destroy">
18 <style type="text/css">
19 <!--
20 a.summary-letter {text-decoration: none}
21 blockquote.indentedblock {margin-right: 0em}
22 div.display {margin-left: 3.2em}
23 div.example {margin-left: 3.2em}
24 div.lisp {margin-left: 3.2em}
25 kbd {font-style: oblique}
26 pre.display {font-family: inherit}
27 pre.format {font-family: inherit}
28 pre.menu-comment {font-family: serif}
29 pre.menu-preformatted {font-family: serif}
30 span.nolinebreak {white-space: nowrap}
31 span.roman {font-family: initial; font-weight: normal}
32 span.sansserif {font-family: sans-serif; font-weight: normal}
33 ul.no-bullet {list-style: none}
34 -->
35 </style>
36
37
38 </head>
39
40 <body lang="en">
41 <span id="tk_002ddialog"></span><div class="header">
42 <p>
43 Next: <a href="exit.html" accesskey="n" rel="next">exit</a>, Previous: <a href="destroy.html" accesskey="p" rel="prev">destroy</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> &nbsp; [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
44 </div>
45 <hr>
46 <span id="tk_002ddialog-1"></span><h3 class="section">3.4 tk-dialog</h3>
47
48 <p>tk-dialog \- Create modal dialog and wait for response
49 </p><span id="Synopsis-18"></span><h4 class="unnumberedsubsec">Synopsis</h4>
50 <p><b>tk-dialog </b><i>window title text bitmap default string string ...</i>
51 </p>
52 <span id="Description-15"></span><h4 class="unnumberedsubsec">Description</h4>
53
54 <p>This procedure is part of the Tk script library.
55 Its arguments describe a dialog box:
56 </p>
57 <dl compact="compact">
58 <dt><i>window</i></dt>
59 <dd><p>Name of top-level window to use for dialog. Any existing window
60 by this name is destroyed.
61 </p></dd>
62 <dt><i>title</i></dt>
63 <dd><p>Text to appear in the window manager&rsquo;s title bar for the dialog.
64 </p></dd>
65 <dt><i>text</i></dt>
66 <dd><p>Message to appear in the top portion of the dialog box.
67 </p></dd>
68 <dt><i>bitmap</i></dt>
69 <dd><p>If non-empty, specifies a bitmap to display in the top portion of
70 the dialog, to the left of the text.
71 If this is an empty string then no bitmap is displayed in the dialog.
72 </p></dd>
73 <dt><i>default</i></dt>
74 <dd><p>If this is an integer greater than or equal to zero, then it gives
75 the index of the button that is to be the default button for the dialog
76 (0 for the leftmost button, and so on).
77 If less than zero or an empty string then there won&rsquo;t be any default
78 button.
79 </p></dd>
80 <dt><i>string</i></dt>
81 <dd><p>There will be one button for each of these arguments.
82 Each <i>string</i> specifies text to display in a button,
83 in order from left to right.
84 </p>
85 <p>After creating a dialog box, <b>tk-dialog</b> waits for the user to
86 select one of the buttons either by clicking on the button with the
87 mouse or by typing return to invoke the default button (if any).
88 Then it returns the index of the selected button: 0 for the leftmost
89 button, 1 for the button next to it, and so on.
90 </p>
91 <p>While waiting for the user to respond, <b>tk-dialog</b> sets a local
92 grab. This prevents the user from interacting with the application
93 in any way except to invoke the dialog box.
94 </p>
95 </dd>
96 </dl>
97 <span id="Keywords-18"></span><h4 class="unnumberedsubsec">Keywords</h4>
98 <p>bitmap, dialog, modal
99 </p><hr>
100 <div class="header">
101 <p>
102 Next: <a href="exit.html" accesskey="n" rel="next">exit</a>, Previous: <a href="destroy.html" accesskey="p" rel="prev">destroy</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> &nbsp; [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
103 </div>
104
105
106
107 </body>
108 </html>