<!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  <span id="projectnumber">3.2.3</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 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> <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 List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class 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> | <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, deprecated)</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 <Wt/Ext/MessageBox></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-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-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"> </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"> </td><td class="mdescRight">Create an empty message box. <a href="#a6477c87e2b02a742065272a019cacf30"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </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> &caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &text, <a class="el" href="namespaceWt.html#aaa26ad9f143951595691fbd604567f5f">Icon</a> icon, WFlags< <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">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="#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 &text)" --> void </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> &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" 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> & </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"> </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 </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"> </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> </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"> </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< StandardButton > buttons)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1MessageBox.html#a2c03238ea19691e14bb915b10a9279f1">setButtons</a> (WFlags< <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">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" align="right" valign="top"><a class="anchor" id="a0ea9c67635ba8acadd3843c281dd3f66"></a><!-- doxytag: member="Wt::Ext::MessageBox::buttons" ref="a0ea9c67635ba8acadd3843c281dd3f66" args="() const " --> WFlags< <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > </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"> </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> </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"> </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 </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"> </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 </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"> </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 </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"> </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 </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"> </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 </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> &value)</td></tr> <tr><td class="mdescLeft"> </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> & </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"> </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>< <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> > & </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"> </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 &animation=WAnimation())" --> virtual void </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> &animation=<a class="el" href="classWt_1_1WAnimation.html">WAnimation</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Show or hide the message box. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </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"> </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> </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> &caption, const <a class="el" href="classWt_1_1WString.html">WString</a> &text, WFlags< <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">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="#af3eacdd064461cd826b2224f919190aa"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespaceWt.html#a270a5e1af09979a6559f0f39e3d93062">StandardButton</a> </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> &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="#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 & 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 </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 &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#aaa26ad9f143951595691fbd604567f5f">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#a270a5e1af09979a6559f0f39e3d93062">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> </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 </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 </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 &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#a270a5e1af09979a6559f0f39e3d93062">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> </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 &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"><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 &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#a270a5e1af09979a6559f0f39e3d93062">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#a270a5e1af09979a6559f0f39e3d93062">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> </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>& 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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </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 Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the C++ Web Toolkit (Wt)</a> by <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>