File: classWt_1_1Ext_1_1MessageBox.html

package info (click to toggle)
witty 3.2.1-2%2Bdeb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 70,436 kB
  • sloc: cpp: 117,095; ansic: 77,999; xml: 7,564; sh: 1,037; perl: 208; makefile: 144; java: 86; sql: 14
file content (527 lines) | stat: -rw-r--r-- 37,165 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::Ext::MessageBox Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="namespaceWt_1_1Ext.html">Ext</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html">MessageBox</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::Ext::MessageBox Class Reference<div class="ingroups"><a class="el" href="group__ext.html">Ext widgets (Wt::Ext)</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::Ext::MessageBox" --><!-- doxytag: inherits="Wt::Ext::Dialog" -->
<p>A standard dialog for confirmation or to get simple user input.  
 <a href="classWt_1_1Ext_1_1MessageBox.html#details">More...</a></p>

<p><code>#include &lt;Wt/Ext/MessageBox&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::Ext::MessageBox:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1Ext_1_1MessageBox__inherit__graph.png" border="0" usemap="#Wt_1_1Ext_1_1MessageBox_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1Ext_1_1MessageBox_inherit__map" id="Wt_1_1Ext_1_1MessageBox_inherit__map">
<area shape="rect" href="classWt_1_1Ext_1_1ProgressDialog.html" title="A standard dialog to inform the user of progress during a time consuming task." alt="" coords="5,677,168,704"/><area shape="rect" href="classWt_1_1Ext_1_1Dialog.html" title="A dialog emulates a modal window that blocks the user&#45;interface." alt="" coords="32,528,141,555"/><area shape="rect" href="classWt_1_1Ext_1_1Panel.html" title="A container with a title and standard GUI elements." alt="" coords="33,453,140,480"/><area shape="rect" href="classWt_1_1Ext_1_1Container.html" title="A container class which manages its contents using layout managers." alt="" coords="23,379,151,405"/><area shape="rect" href="classWt_1_1Ext_1_1Component.html" title="An abstract base class for widgets that can be visually disabled." alt="" coords="17,304,156,331"/><area shape="rect" href="classWt_1_1Ext_1_1Widget.html" title="An abstract base class for all Ext widgets." alt="" coords="29,229,144,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="23,155,151,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="37,80,136,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="39,5,135,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1Ext_1_1MessageBox-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a6477c87e2b02a742065272a019cacf30">MessageBox</a> (bool i18n=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty message box.  <a href="#a6477c87e2b02a742065272a019cacf30"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a7af93ad6ef0588e3539f2d726ac07d92">MessageBox</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text, <a class="el" href="namespaceWt.html#aaa26ad9f143951595691fbd604567f5f">Icon</a> icon, WFlags&lt; <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> &gt; buttons, bool i18n=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a message box with given caption, text, icon, and buttons.  <a href="#a7af93ad6ef0588e3539f2d726ac07d92"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac318d28fa19abc4e496b497aea557d39"></a><!-- doxytag: member="Wt::Ext::MessageBox::setText" ref="ac318d28fa19abc4e496b497aea557d39" args="(const WString &amp;text)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ac318d28fa19abc4e496b497aea557d39">setText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the text for the message box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aad99693851dd7c95ddb4ca463e69f5c9"></a><!-- doxytag: member="Wt::Ext::MessageBox::text" ref="aad99693851dd7c95ddb4ca463e69f5c9" args="() const " -->
const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#aad99693851dd7c95ddb4ca463e69f5c9">text</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the message box text. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85e914a68d10813bb0624c19eb679ca0"></a><!-- doxytag: member="Wt::Ext::MessageBox::setIcon" ref="a85e914a68d10813bb0624c19eb679ca0" args="(Icon icon)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a85e914a68d10813bb0624c19eb679ca0">setIcon</a> (<a class="el" href="namespaceWt.html#aaa26ad9f143951595691fbd604567f5f">Icon</a> icon)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the icon. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a08dc6e5e7e1dfd07d0fbf41213c8e30e"></a><!-- doxytag: member="Wt::Ext::MessageBox::icon" ref="a08dc6e5e7e1dfd07d0fbf41213c8e30e" args="() const " -->
<a class="el" href="namespaceWt.html#aaa26ad9f143951595691fbd604567f5f">Icon</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a08dc6e5e7e1dfd07d0fbf41213c8e30e">icon</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the icon. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c03238ea19691e14bb915b10a9279f1"></a><!-- doxytag: member="Wt::Ext::MessageBox::setButtons" ref="a2c03238ea19691e14bb915b10a9279f1" args="(WFlags&lt; StandardButton &gt; buttons)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a2c03238ea19691e14bb915b10a9279f1">setButtons</a> (WFlags&lt; <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> &gt; buttons)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set standard buttons for the message box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ea9c67635ba8acadd3843c281dd3f66"></a><!-- doxytag: member="Wt::Ext::MessageBox::buttons" ref="a0ea9c67635ba8acadd3843c281dd3f66" args="() const " -->
WFlags&lt; <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a0ea9c67635ba8acadd3843c281dd3f66">buttons</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the standard buttons. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a1ca14b375ae42488916e23d97e42d5f9">result</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the result of this message box.  <a href="#a1ca14b375ae42488916e23d97e42d5f9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a4c551e90aea08438544ddbf2f3197133">enablePrompt</a> (bool enable)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Show a single-line input field.  <a href="#a4c551e90aea08438544ddbf2f3197133"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#af6626137daa8af5a4d615bdc8c59f5b9">hasPrompt</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if the messagebox may show a prompt.  <a href="#af6626137daa8af5a4d615bdc8c59f5b9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ade8dec9c2364c85ed42fc0cdb3bbae53">enableTextArea</a> (bool enable)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Show a multi-line input field.  <a href="#ade8dec9c2364c85ed42fc0cdb3bbae53"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a353ac2d752cc9921505d3a61f495388c">hasTextArea</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if the messagebox may show a prompt.  <a href="#a353ac2d752cc9921505d3a61f495388c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a88fa134817d0afc348df856b7c4236fe">setValue</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value in the input field.  <a href="#a88fa134817d0afc348df856b7c4236fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ab1debb3cb5c60e399c396eb0585c4b79">value</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of the input field.  <a href="#ab1debb3cb5c60e399c396eb0585c4b79"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b95867c4a86a79fdf317f7926a87667"></a><!-- doxytag: member="Wt::Ext::MessageBox::buttonClicked" ref="a7b95867c4a86a79fdf317f7926a87667" args="()" -->
<a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a7b95867c4a86a79fdf317f7926a87667">buttonClicked</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emitted when a button is clicked. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a127a61d582c445a7549a0a6874a70488"></a><!-- doxytag: member="Wt::Ext::MessageBox::setHidden" ref="a127a61d582c445a7549a0a6874a70488" args="(bool hidden, const WAnimation &amp;animation=WAnimation())" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a127a61d582c445a7549a0a6874a70488">setHidden</a> (bool hidden, const <a class="el" href="classWt_1_1WAnimation.html">WAnimation</a> &amp;animation=<a class="el" href="classWt_1_1WAnimation.html">WAnimation</a>())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Show or hide the message box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#aba9efcb3903259caa0981f5ecc0cb7cb">refresh</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Refresh the widget.  <a href="#aba9efcb3903259caa0981f5ecc0cb7cb"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#af3eacdd064461cd826b2224f919190aa">show</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text, WFlags&lt; <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> &gt; buttons, bool i18n=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method to show a message box, blocking the current thread.  <a href="#af3eacdd064461cd826b2224f919190aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a987211d96f9128716c5dab353a16ad84">prompt</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text, <a class="el" href="classWt_1_1WString.html">WString</a> &amp;value, bool multiLine=false, bool i18n=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method to show a message box prompting for input, blocking the current thread.  <a href="#a987211d96f9128716c5dab353a16ad84"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A standard dialog for confirmation or to get simple user input. </p>
<p>The message box shows a message in a dialog window, with a number of buttons. These buttons may only be standard buttons.</p>
<p>There are two distinct ways for using a MessageBox, which reflect the two ways of dealing with a <a class="el" href="classWt_1_1Ext_1_1Dialog.html" title="A dialog emulates a modal window that blocks the user-interface.">Dialog</a> box.</p>
<p>The easiest way is using the static <a class="el" href="classWt_1_1WWidget.html#a52dcef5a385ddfa0a8c3e6c20000f181" title="Shows the widget.">show()</a> method, which shows a message box, blocks the current thread, and returns the button that was pressed by the user. Since this uses the <a class="el" href="classWt_1_1Ext_1_1Dialog.html#a1dbf3f23fde44807110abe3cf43f7944" title="Execute the dialog in a recursive event loop.">Dialog::exec()</a>, it suffers from the same scalability issues.</p>
<p>The more elaborate way is by creating a <a class="el" href="classWt_1_1Ext_1_1MessageBox.html" title="A standard dialog for confirmation or to get simple user input.">MessageBox</a>, and connecting the buttonClicked signal to a method. This method then interpretes the result and deletes the message box.</p>
<p>The API is slightly different from the <a class="el" href="classWt_1_1WMessageBox.html" title="A standard dialog for confirmation or to get simple user input.">WMessageBox</a> API: </p>
<ul>
<li>
no support for non-standard buttons (<a class="el" href="classWt_1_1WMessageBox.html#a9d07bb99d17c38128c79f9c7ecd42963" title="Add a custom button with given text.">WMessageBox::addButton()</a>), or access to buttons (<a class="el" href="classWt_1_1WMessageBox.html#a0e95f906d321b5c5cb574abc25716aec" title="Returns the button widget for the given standard button.">WMessageBox::button()</a>). </li>
<li>
supports only Yes, No, Ok and Cancel buttons. </li>
<li>
supports more JavaScript like standard functionality, to prompt for input (<a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ade8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>). </li>
</ul>
<div class="image">
<img src="ExtMessageBox-1.png" alt="ExtMessageBox-1.png"/>
<div class="caption">
Example of a MessageBox</div></div>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6477c87e2b02a742065272a019cacf30"></a><!-- doxytag: member="Wt::Ext::MessageBox::MessageBox" ref="a6477c87e2b02a742065272a019cacf30" args="(bool i18n=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::Ext::MessageBox::MessageBox </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>i18n</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create an empty message box. </p>
<p>The button labels may be set fixed English (if i18n = false), or fetched from a resource bundle if i18n = true. In that case, the key for each button is exactly the same as the English text. </p>

</div>
</div>
<a class="anchor" id="a7af93ad6ef0588e3539f2d726ac07d92"></a><!-- doxytag: member="Wt::Ext::MessageBox::MessageBox" ref="a7af93ad6ef0588e3539f2d726ac07d92" args="(const WString &amp;caption, const WString &amp;text, Icon icon, WFlags&lt; StandardButton &gt; buttons, bool i18n=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::Ext::MessageBox::MessageBox </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>caption</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#aaa26ad9f143951595691fbd604567f5f">Icon</a>&#160;</td>
          <td class="paramname"><em>icon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> &gt;&#160;</td>
          <td class="paramname"><em>buttons</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>i18n</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a message box with given caption, text, icon, and buttons. </p>
<p>The button labels may be set fixed English (if i18n = false), or fetched from a resource bundle if i18n = true. In that case, the key for each button is exactly the same as the English text. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4c551e90aea08438544ddbf2f3197133"></a><!-- doxytag: member="Wt::Ext::MessageBox::enablePrompt" ref="a4c551e90aea08438544ddbf2f3197133" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::MessageBox::enablePrompt </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Show a single-line input field. </p>
<p>A message box may contain either a prompt, or a text area field, but not both. The value may be set using <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a> and retrieved using <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ab1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ade8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ab1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ade8dec9c2364c85ed42fc0cdb3bbae53"></a><!-- doxytag: member="Wt::Ext::MessageBox::enableTextArea" ref="ade8dec9c2364c85ed42fc0cdb3bbae53" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::MessageBox::enableTextArea </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Show a multi-line input field. </p>
<p>A message box may contain either a prompt, or a text area field, but not both. The value may be set using <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a> and retrieved using <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ab1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ab1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af6626137daa8af5a4d615bdc8c59f5b9"></a><!-- doxytag: member="Wt::Ext::MessageBox::hasPrompt" ref="af6626137daa8af5a4d615bdc8c59f5b9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::Ext::MessageBox::hasPrompt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return if the messagebox may show a prompt. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a353ac2d752cc9921505d3a61f495388c"></a><!-- doxytag: member="Wt::Ext::MessageBox::hasTextArea" ref="a353ac2d752cc9921505d3a61f495388c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::Ext::MessageBox::hasTextArea </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return if the messagebox may show a prompt. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ade8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a987211d96f9128716c5dab353a16ad84"></a><!-- doxytag: member="Wt::Ext::MessageBox::prompt" ref="a987211d96f9128716c5dab353a16ad84" args="(const WString &amp;caption, const WString &amp;text, WString &amp;value, bool multiLine=false, bool i18n=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> Wt::Ext::MessageBox::prompt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>caption</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>multiLine</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>i18n</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience method to show a message box prompting for input, blocking the current thread. </p>
<p>Show a message box that prompts for input, blocking the current thread until the message box is closed, and return the result.</p>
<p>When the user confirmed message box, the <em>value</em> is updated with the edited value. </p>

</div>
</div>
<a class="anchor" id="aba9efcb3903259caa0981f5ecc0cb7cb"></a><!-- doxytag: member="Wt::Ext::MessageBox::refresh" ref="aba9efcb3903259caa0981f5ecc0cb7cb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::MessageBox::refresh </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Refresh the widget. </p>
<p>The refresh method is invoked when the locale is changed using <a class="el" href="classWt_1_1WApplication.html#a5c9cc1350019d69f154a2b44cdaf2596" title="Changes the locale.">WApplication::setLocale()</a> or when the user hit the refresh button.</p>
<p>The widget must actualize its contents in response. </p>

<p>Reimplemented from <a class="el" href="classWt_1_1Ext_1_1Panel.html#a960a266d0c5427a2786cc45a4b05ffa1">Wt::Ext::Panel</a>.</p>

</div>
</div>
<a class="anchor" id="a1ca14b375ae42488916e23d97e42d5f9"></a><!-- doxytag: member="Wt::Ext::MessageBox::result" ref="a1ca14b375ae42488916e23d97e42d5f9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> Wt::Ext::MessageBox::result </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the result of this message box. </p>
<p>This value is only defined after a button has been clicked. </p>

</div>
</div>
<a class="anchor" id="a88fa134817d0afc348df856b7c4236fe"></a><!-- doxytag: member="Wt::Ext::MessageBox::setValue" ref="a88fa134817d0afc348df856b7c4236fe" args="(const WString &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::MessageBox::setValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the value in the input field. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ade8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af3eacdd064461cd826b2224f919190aa"></a><!-- doxytag: member="Wt::Ext::MessageBox::show" ref="af3eacdd064461cd826b2224f919190aa" args="(const WString &amp;caption, const WString &amp;text, WFlags&lt; StandardButton &gt; buttons, bool i18n=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> Wt::Ext::MessageBox::show </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>caption</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> &gt;&#160;</td>
          <td class="paramname"><em>buttons</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>i18n</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience method to show a message box, blocking the current thread. </p>
<p>Show a message box, blocking the current thread until the message box is closed, and return the result. </p>

</div>
</div>
<a class="anchor" id="ab1debb3cb5c60e399c396eb0585c4b79"></a><!-- doxytag: member="Wt::Ext::MessageBox::value" ref="ab1debb3cb5c60e399c396eb0585c4b79" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a>&amp; Wt::Ext::MessageBox::value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the value of the input field. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ade8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a> </dd></dl>

<p>Reimplemented in <a class="el" href="classWt_1_1Ext_1_1ProgressDialog.html#aec354c2676e811e2c354ce22f02ef1c7">Wt::Ext::ProgressDialog</a>.</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Fri Mar 30 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>