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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::Ext::MessageBox Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related 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>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="namespaceWt_1_1Ext.html">Ext</a>::<a class="el" href="classWt_1_1Ext_1_1MessageBox.html">MessageBox</a>
</div>
</div>
<div class="contents">
<h1>Wt::Ext::MessageBox Class Reference<br>
<small>
[<a class="el" href="group__ext.html">Ext widgets</a>]</small>
</h1><!-- doxytag: class="Wt::Ext::MessageBox" --><!-- doxytag: inherits="Wt::Ext::Dialog" -->A standard dialog for confirmation or to get simple user input.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/Ext/MessageBox></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::Ext::MessageBox:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1Ext_1_1MessageBox__inherit__graph.png" border="0" usemap="#Wt_1_1Ext_1_1MessageBox__inherit__map" alt="Inheritance graph"></center>
<map name="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,165,704"><area shape="rect" href="classWt_1_1Ext_1_1Dialog.html" title="A dialog emulates a modal window that blocks the user-interface." alt="" coords="31,528,140,555"><area shape="rect" href="classWt_1_1Ext_1_1Panel.html" title="A container with a title and standard GUI elements." alt="" coords="32,453,139,480"><area shape="rect" href="classWt_1_1Ext_1_1Container.html" title="A container class which manages its contents using layout managers." alt="" coords="21,379,149,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="16,304,155,331"><area shape="rect" href="classWt_1_1Ext_1_1Widget.html" title="An abstract base class for all Ext widgets." alt="" coords="29,229,141,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="24,155,147,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="37,80,133,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="37,5,133,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1Ext_1_1MessageBox-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#6477c87e2b02a742065272a019cacf30">MessageBox</a> (bool i18n=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an empty message box. <a href="#6477c87e2b02a742065272a019cacf30"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#7af93ad6ef0588e3539f2d726ac07d92">MessageBox</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &text, <a class="el" href="namespaceWt.html#aa26ad9f143951595691fbd604567f5f">Icon</a> icon, WFlags< <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > buttons, bool i18n=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a message box with given caption, text, icon, and buttons. <a href="#7af93ad6ef0588e3539f2d726ac07d92"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c318d28fa19abc4e496b497aea557d39"></a><!-- doxytag: member="Wt::Ext::MessageBox::setText" ref="c318d28fa19abc4e496b497aea557d39" args="(const WString &text)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#c318d28fa19abc4e496b497aea557d39">setText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &text)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the text for the message box. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad99693851dd7c95ddb4ca463e69f5c9"></a><!-- doxytag: member="Wt::Ext::MessageBox::text" ref="ad99693851dd7c95ddb4ca463e69f5c9" args="() const " -->
const <a class="el" href="classWt_1_1WString.html">WString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ad99693851dd7c95ddb4ca463e69f5c9">text</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the message box text. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="85e914a68d10813bb0624c19eb679ca0"></a><!-- doxytag: member="Wt::Ext::MessageBox::setIcon" ref="85e914a68d10813bb0624c19eb679ca0" args="(Icon icon)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#85e914a68d10813bb0624c19eb679ca0">setIcon</a> (<a class="el" href="namespaceWt.html#aa26ad9f143951595691fbd604567f5f">Icon</a> icon)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the icon. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08dc6e5e7e1dfd07d0fbf41213c8e30e"></a><!-- doxytag: member="Wt::Ext::MessageBox::icon" ref="08dc6e5e7e1dfd07d0fbf41213c8e30e" args="() const " -->
<a class="el" href="namespaceWt.html#aa26ad9f143951595691fbd604567f5f">Icon</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#08dc6e5e7e1dfd07d0fbf41213c8e30e">icon</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the icon. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2c03238ea19691e14bb915b10a9279f1"></a><!-- doxytag: member="Wt::Ext::MessageBox::setButtons" ref="2c03238ea19691e14bb915b10a9279f1" args="(WFlags< StandardButton > buttons)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#2c03238ea19691e14bb915b10a9279f1">setButtons</a> (WFlags< <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > buttons)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set standard buttons for the message box. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ea9c67635ba8acadd3843c281dd3f66"></a><!-- doxytag: member="Wt::Ext::MessageBox::buttons" ref="0ea9c67635ba8acadd3843c281dd3f66" args="() const " -->
WFlags< <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#0ea9c67635ba8acadd3843c281dd3f66">buttons</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the standard buttons. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#1ca14b375ae42488916e23d97e42d5f9">result</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the result of this message box. <a href="#1ca14b375ae42488916e23d97e42d5f9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#4c551e90aea08438544ddbf2f3197133">enablePrompt</a> (bool enable)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Show a single-line input field. <a href="#4c551e90aea08438544ddbf2f3197133"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#f6626137daa8af5a4d615bdc8c59f5b9">hasPrompt</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if the messagebox may show a prompt. <a href="#f6626137daa8af5a4d615bdc8c59f5b9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#de8dec9c2364c85ed42fc0cdb3bbae53">enableTextArea</a> (bool enable)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Show a multi-line input field. <a href="#de8dec9c2364c85ed42fc0cdb3bbae53"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#353ac2d752cc9921505d3a61f495388c">hasTextArea</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if the messagebox may show a prompt. <a href="#353ac2d752cc9921505d3a61f495388c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#88fa134817d0afc348df856b7c4236fe">setValue</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the value in the input field. <a href="#88fa134817d0afc348df856b7c4236fe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#b1debb3cb5c60e399c396eb0585c4b79">value</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the value of the input field. <a href="#b1debb3cb5c60e399c396eb0585c4b79"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7b95867c4a86a79fdf317f7926a87667"></a><!-- doxytag: member="Wt::Ext::MessageBox::buttonClicked" ref="7b95867c4a86a79fdf317f7926a87667" args="()" -->
<a class="el" href="classWt_1_1Signal.html">Signal</a>< <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#7b95867c4a86a79fdf317f7926a87667">buttonClicked</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signal emitted when a button is clicked. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1886eef5b4b8e903b6f1455f3a864045"></a><!-- doxytag: member="Wt::Ext::MessageBox::setHidden" ref="1886eef5b4b8e903b6f1455f3a864045" args="(bool hidden)" -->
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#1886eef5b4b8e903b6f1455f3a864045">setHidden</a> (bool hidden)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Show or hide the message box. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#ba9efcb3903259caa0981f5ecc0cb7cb">refresh</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Refresh the widget. <a href="#ba9efcb3903259caa0981f5ecc0cb7cb"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#f3eacdd064461cd826b2224f919190aa">show</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &text, WFlags< <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > buttons, bool i18n=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience method to show a message box, blocking the current thread. <a href="#f3eacdd064461cd826b2224f919190aa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#987211d96f9128716c5dab353a16ad84">prompt</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &text, <a class="el" href="classWt_1_1WString.html">WString</a> &value, bool multiLine=false, bool i18n=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience method to show a message box prompting for input, blocking the current thread. <a href="#987211d96f9128716c5dab353a16ad84"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A standard dialog for confirmation or to get simple user input.
<p>
The message box shows a message in a dialog window, with a number of buttons. These buttons may only be standard buttons.<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>
The easiest way is using the static <a class="el" href="classWt_1_1WWidget.html#52dcef5a385ddfa0a8c3e6c20000f181" 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#1dbf3f23fde44807110abe3cf43f7944" title="Execute the dialog in a recursive event loop.">Dialog::exec()</a>, it suffers from the same scalability issues.<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>
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: <ul>
<li>
no support for non-standard buttons (<a class="el" href="classWt_1_1WMessageBox.html#9d07bb99d17c38128c79f9c7ecd42963" title="Add a custom button with given text.">WMessageBox::addButton()</a>), or access to buttons (<a class="el" href="classWt_1_1WMessageBox.html#0e95f906d321b5c5cb574abc25716aec" 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#4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#de8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>). </li>
</ul>
<p>
<div align="center">
<img src="ExtMessageBox-1.png" alt="ExtMessageBox-1.png">
<p><strong>Example of a MessageBox</strong></p></div>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="6477c87e2b02a742065272a019cacf30"></a><!-- doxytag: member="Wt::Ext::MessageBox::MessageBox" ref="6477c87e2b02a742065272a019cacf30" 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 </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>
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.
</div>
</div><p>
<a class="anchor" name="7af93ad6ef0588e3539f2d726ac07d92"></a><!-- doxytag: member="Wt::Ext::MessageBox::MessageBox" ref="7af93ad6ef0588e3539f2d726ac07d92" args="(const WString &caption, const WString &text, Icon icon, WFlags< StandardButton > 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> & </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> & </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#aa26ad9f143951595691fbd604567f5f">Icon</a> </td>
<td class="paramname"> <em>icon</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">WFlags< <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > </td>
<td class="paramname"> <em>buttons</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>i18n</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<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>
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.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="1ca14b375ae42488916e23d97e42d5f9"></a><!-- doxytag: member="Wt::Ext::MessageBox::result" ref="1ca14b375ae42488916e23d97e42d5f9" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> Wt::Ext::MessageBox::result </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the result of this message box.
<p>
This value is only defined after a button has been clicked.
</div>
</div><p>
<a class="anchor" name="4c551e90aea08438544ddbf2f3197133"></a><!-- doxytag: member="Wt::Ext::MessageBox::enablePrompt" ref="4c551e90aea08438544ddbf2f3197133" 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 </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>
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#88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a> and retrieved using <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#b1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#de8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#b1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="f6626137daa8af5a4d615bdc8c59f5b9"></a><!-- doxytag: member="Wt::Ext::MessageBox::hasPrompt" ref="f6626137daa8af5a4d615bdc8c59f5b9" 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<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return if the messagebox may show a prompt.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="de8dec9c2364c85ed42fc0cdb3bbae53"></a><!-- doxytag: member="Wt::Ext::MessageBox::enableTextArea" ref="de8dec9c2364c85ed42fc0cdb3bbae53" 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 </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>
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#88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a> and retrieved using <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#b1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#88fa134817d0afc348df856b7c4236fe" title="Set the value in the input field.">setValue()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#b1debb3cb5c60e399c396eb0585c4b79" title="Get the value of the input field.">value()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="353ac2d752cc9921505d3a61f495388c"></a><!-- doxytag: member="Wt::Ext::MessageBox::hasTextArea" ref="353ac2d752cc9921505d3a61f495388c" 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<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return if the messagebox may show a prompt.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#de8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="88fa134817d0afc348df856b7c4236fe"></a><!-- doxytag: member="Wt::Ext::MessageBox::setValue" ref="88fa134817d0afc348df856b7c4236fe" args="(const WString &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> & </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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#de8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="b1debb3cb5c60e399c396eb0585c4b79"></a><!-- doxytag: member="Wt::Ext::MessageBox::value" ref="b1debb3cb5c60e399c396eb0585c4b79" 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>& Wt::Ext::MessageBox::value </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the value of the input field.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#de8dec9c2364c85ed42fc0cdb3bbae53" title="Show a multi-line input field.">enableTextArea()</a>, <a class="el" href="classWt_1_1Ext_1_1MessageBox.html#4c551e90aea08438544ddbf2f3197133" title="Show a single-line input field.">enablePrompt()</a> </dd></dl>
<p>Reimplemented in <a class="el" href="classWt_1_1Ext_1_1ProgressDialog.html#ec354c2676e811e2c354ce22f02ef1c7">Wt::Ext::ProgressDialog</a>.</p>
</div>
</div><p>
<a class="anchor" name="f3eacdd064461cd826b2224f919190aa"></a><!-- doxytag: member="Wt::Ext::MessageBox::show" ref="f3eacdd064461cd826b2224f919190aa" args="(const WString &caption, const WString &text, WFlags< StandardButton > buttons, bool i18n=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> Wt::Ext::MessageBox::show </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </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> & </td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">WFlags< <a class="el" href="namespaceWt.html#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > </td>
<td class="paramname"> <em>buttons</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>i18n</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<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>
Show a message box, blocking the current thread until the message box is closed, and return the result.
</div>
</div><p>
<a class="anchor" name="987211d96f9128716c5dab353a16ad84"></a><!-- doxytag: member="Wt::Ext::MessageBox::prompt" ref="987211d96f9128716c5dab353a16ad84" args="(const WString &caption, const WString &text, WString &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#270a5e1af09979a6559f0f39e3d93062">StandardButton</a> Wt::Ext::MessageBox::prompt </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </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> & </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> & </td>
<td class="paramname"> <em>value</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>multiLine</em> = <code>false</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>i18n</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<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>
Show a message box that prompts for input, blocking the current thread until the message box is closed, and return the result.<p>
When the user confirmed message box, the <em>value</em> is updated with the edited value.
</div>
</div><p>
<a class="anchor" name="ba9efcb3903259caa0981f5ecc0cb7cb"></a><!-- doxytag: member="Wt::Ext::MessageBox::refresh" ref="ba9efcb3903259caa0981f5ecc0cb7cb" 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>
The refresh method is invoked when the locale is changed using <a class="el" href="classWt_1_1WApplication.html#5c9cc1350019d69f154a2b44cdaf2596" title="Changes the locale.">WApplication::setLocale()</a> or when the user hit the refresh button.<p>
The widget must actualize its contents in response.
<p>Reimplemented from <a class="el" href="classWt_1_1Ext_1_1Panel.html#960a266d0c5427a2786cc45a4b05ffa1">Wt::Ext::Panel</a>.</p>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|