Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 2182

wt-doc-3.2.3-1.fc18.noarch.rpm

<!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::WTextArea 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.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&#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="classWt_1_1WTextArea.html">WTextArea</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WTextArea Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WTextArea" --><!-- doxytag: inherits="Wt::WFormWidget" -->
<p>A widget that provides a multi-line edit.  
 <a href="classWt_1_1WTextArea.html#details">More...</a></p>

<p><code>#include &lt;Wt/WTextArea&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WTextArea:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WTextArea__inherit__graph.png" border="0" usemap="#Wt_1_1WTextArea_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WTextArea_inherit__map" id="Wt_1_1WTextArea_inherit__map">
<area shape="rect" href="classWt_1_1WTextEdit.html" title="A rich&#45;text XHTML editor." alt="" coords="24,453,131,480"/><area shape="rect" href="classWt_1_1WFormWidget.html" title="An abstract widget that corresponds to an HTML form element." alt="" coords="12,304,143,331"/><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="5,229,149,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="13,155,141,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="28,80,127,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="29,5,125,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WTextArea-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"><a class="anchor" id="ad083421ca4fe15da882440d506cab05b"></a><!-- doxytag: member="Wt::WTextArea::WTextArea" ref="ad083421ca4fe15da882440d506cab05b" args="(WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#ad083421ca4fe15da882440d506cab05b">WTextArea</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a text area with empty content and optional parent. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c2aa87526952d2645cec139f4ad26bb"></a><!-- doxytag: member="Wt::WTextArea::WTextArea" ref="a8c2aa87526952d2645cec139f4ad26bb" args="(const WString &amp;content, WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#a8c2aa87526952d2645cec139f4ad26bb">WTextArea</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;content, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a text area with given content and optional parent. <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_1WTextArea.html#af429ed3a2b6011c97b4f9ea7f910e079">setColumns</a> (int cols)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the number of columns.  <a href="#af429ed3a2b6011c97b4f9ea7f910e079"></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_1WTextArea.html#ade46b47350f427f45c9b53ac7e41c5b2">setRows</a> (int rows)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the number of rows.  <a href="#ade46b47350f427f45c9b53ac7e41c5b2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#afa438b99f8ebf858e3202c262b29a3ae">columns</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of columns.  <a href="#afa438b99f8ebf858e3202c262b29a3ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#abe1a4daf466365557cfd3fbbe8bc9dd7">rows</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of rows.  <a href="#abe1a4daf466365557cfd3fbbe8bc9dd7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8b89ce30df2b02894c53b6ed71fe4a6"></a><!-- doxytag: member="Wt::WTextArea::text" ref="ad8b89ce30df2b02894c53b6ed71fe4a6" 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_1WTextArea.html#ad8b89ce30df2b02894c53b6ed71fe4a6">text</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current content. <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_1WTextArea.html#a1f05060c037d13c2c6c26f51f1fb9640">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">Sets the content of the text area.  <a href="#a1f05060c037d13c2c6c26f51f1fb9640"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#a81bb8d7f0206cb3a4d907580e274c315">selectionStart</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current selection start.  <a href="#a81bb8d7f0206cb3a4d907580e274c315"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#ac44ffcd0c2d1e4d1530529962f809d3b">selectedText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the currently selected text.  <a href="#ac44ffcd0c2d1e4d1530529962f809d3b"></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_1WTextArea.html#a29c5b4df5c37101c82f8c8bdddf695fd">hasSelectedText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether there is selected text.  <a href="#a29c5b4df5c37101c82f8c8bdddf695fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#a778d626bbf7af043759237764b91f017">cursorPosition</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current cursor position.  <a href="#a778d626bbf7af043759237764b91f017"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#a7a2951a0835099cffda19f217c009e20">valueText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current value.  <a href="#a7a2951a0835099cffda19f217c009e20"></a><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_1WTextArea.html#aad1a86ffe8e18eed8a2ef6cf6b9300ba">setValueText</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">Sets the current value.  <a href="#aad1a86ffe8e18eed8a2ef6cf6b9300ba"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#a83a327ce1d6408a99991cd6b5ddc74e4">boxPadding</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget's built-in padding.  <a href="#a83a327ce1d6408a99991cd6b5ddc74e4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextArea.html#a3379006d7dbe832b617303b72924019c">boxBorder</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget's built-in border width.  <a href="#a3379006d7dbe832b617303b72924019c"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A widget that provides a multi-line edit. </p>
<p>To act upon text changes, connect a slot to the <a class="el" href="classWt_1_1WFormWidget.html#a5216ba1594b5dc525cc47cad593c7ba8" title="Signal emitted when the value was changed.">changed()</a> signal. This signal is emitted when the user changed the content, and subsequently removes the focus from the line edit.</p>
<p>To act upon editing, connect a slot to the <a class="el" href="classWt_1_1WInteractWidget.html#a7602bfbe38090d4acca674afc02f15c8" title="Event signal emitted when a keyboard key is released.">keyWentUp()</a> signal.</p>
<p>At all times, the current content may be accessed with the <a class="el" href="classWt_1_1WTextArea.html#ad8b89ce30df2b02894c53b6ed71fe4a6" title="Returns the current content.">text()</a> method.</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *w = <span class="keyword">new</span> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a>();
 <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a> *label = <span class="keyword">new</span> <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a>(<span class="stringliteral">&quot;Comments:&quot;</span>, w);
 <a class="code" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">Wt::WTextArea</a> *edit = <span class="keyword">new</span> <a class="code" href="classWt_1_1WTextArea.html#ad083421ca4fe15da882440d506cab05b" title="Creates a text area with empty content and optional parent.">Wt::WTextArea</a>(<span class="stringliteral">&quot;&quot;</span>, w);
 label-&gt;<a class="code" href="classWt_1_1WLabel.html#af468c613eab7d184c68fd6ae20978de5" title="Sets the buddy of this label.">setBuddy</a>(edit);
</pre></div><p>WTextArea is an <a class="el" href="classWt_1_1WWidget.html#ac78e3af143883334c82031790c87416e">inline </a> widget.</p>
<h3>CSS</h3>
<p>The widget corresponds to an HTML <code>&lt;textarea&gt;</code> tag can be styled using inline or external CSS as appropriate. The emptyText style can be configured via .Wt-edit-emptyText.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a> </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3379006d7dbe832b617303b72924019c"></a><!-- doxytag: member="Wt::WTextArea::boxBorder" ref="a3379006d7dbe832b617303b72924019c" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextArea::boxBorder </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget's built-in border width. </p>
<p>This is used by the layout managers to correct for a built-in border which interferes with setting a widget's width (or height) to 100%.</p>
<p>A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the border width (the default implementation returns 0).</p>
<p>For form widgets, the border width depends on the specific browser/platform combination, unless an explicit border is set for the widget.</p>
<p>When setting an explicit border for the widget using a style class, you will want to reimplement this method to return this border width, in case you want to set the widget inside a layout manager.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextArea.html#a83a327ce1d6408a99991cd6b5ddc74e4" title="Returns the widget&#39;s built-in padding.">boxPadding()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWidget.html#a6bd6a9d01afbc4f96c4ec7dd48db9126">Wt::WWidget</a>.</p>

<p>Reimplemented in <a class="el" href="classWt_1_1WTextEdit.html#ac946e268b85e49d1155c656f354f00cb">Wt::WTextEdit</a>.</p>

</div>
</div>
<a class="anchor" id="a83a327ce1d6408a99991cd6b5ddc74e4"></a><!-- doxytag: member="Wt::WTextArea::boxPadding" ref="a83a327ce1d6408a99991cd6b5ddc74e4" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextArea::boxPadding </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget's built-in padding. </p>
<p>This is used by the layout managers to correct for a built-in padding which interferes with setting a widget's width (or height) to 100%.</p>
<p>A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the padding (the default implementation returns 0).</p>
<p>For form widgets, the padding depends on the specific browser/platform combination, unless an explicit padding is set for the widget.</p>
<p>When setting an explicit padding for the widget using a style class, you will want to reimplement this method to return this padding in case you want to set the widget inside a layout manager.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextArea.html#a3379006d7dbe832b617303b72924019c" title="Returns the widget&#39;s built-in border width.">boxBorder()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWidget.html#ab4cfd6bd5bea1a6182731ec79a78792c">Wt::WWidget</a>.</p>

<p>Reimplemented in <a class="el" href="classWt_1_1WTextEdit.html#ab268ab5bfd2edda2bf64dad5cd068abe">Wt::WTextEdit</a>.</p>

</div>
</div>
<a class="anchor" id="afa438b99f8ebf858e3202c262b29a3ae"></a><!-- doxytag: member="Wt::WTextArea::columns" ref="afa438b99f8ebf858e3202c262b29a3ae" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextArea::columns </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of columns. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextArea.html#af429ed3a2b6011c97b4f9ea7f910e079" title="Sets the number of columns.">setColumns()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a778d626bbf7af043759237764b91f017"></a><!-- doxytag: member="Wt::WTextArea::cursorPosition" ref="a778d626bbf7af043759237764b91f017" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextArea::cursorPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current cursor position. </p>
<p>Returns -1 if the widget does not have the focus. </p>

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

<p>Returns whether there is selected text. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>selectedtext() </dd></dl>

</div>
</div>
<a class="anchor" id="abe1a4daf466365557cfd3fbbe8bc9dd7"></a><!-- doxytag: member="Wt::WTextArea::rows" ref="abe1a4daf466365557cfd3fbbe8bc9dd7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextArea::rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of rows. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextArea.html#ade46b47350f427f45c9b53ac7e41c5b2" title="Sets the number of rows.">setRows()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac44ffcd0c2d1e4d1530529962f809d3b"></a><!-- doxytag: member="Wt::WTextArea::selectedText" ref="ac44ffcd0c2d1e4d1530529962f809d3b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WTextArea::selectedText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the currently selected text. </p>
<p>Returns an empty string if there is currently no selected text.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextArea.html#a29c5b4df5c37101c82f8c8bdddf695fd" title="Returns whether there is selected text.">hasSelectedText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a81bb8d7f0206cb3a4d907580e274c315"></a><!-- doxytag: member="Wt::WTextArea::selectionStart" ref="a81bb8d7f0206cb3a4d907580e274c315" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextArea::selectionStart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current selection start. </p>
<p>Returns -1 if there is no selected text.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextArea.html#a29c5b4df5c37101c82f8c8bdddf695fd" title="Returns whether there is selected text.">hasSelectedText()</a>, <a class="el" href="classWt_1_1WTextArea.html#ac44ffcd0c2d1e4d1530529962f809d3b" title="Returns the currently selected text.">selectedText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af429ed3a2b6011c97b4f9ea7f910e079"></a><!-- doxytag: member="Wt::WTextArea::setColumns" ref="af429ed3a2b6011c97b4f9ea7f910e079" args="(int cols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextArea::setColumns </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the number of columns. </p>
<p>The default value is 20. </p>

</div>
</div>
<a class="anchor" id="ade46b47350f427f45c9b53ac7e41c5b2"></a><!-- doxytag: member="Wt::WTextArea::setRows" ref="ade46b47350f427f45c9b53ac7e41c5b2" args="(int rows)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextArea::setRows </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the number of rows. </p>
<p>The default value is 5. </p>

</div>
</div>
<a class="anchor" id="a1f05060c037d13c2c6c26f51f1fb9640"></a><!-- doxytag: member="Wt::WTextArea::setText" ref="a1f05060c037d13c2c6c26f51f1fb9640" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextArea::setText </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><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the content of the text area. </p>
<p>The default text is "". </p>

<p>Reimplemented in <a class="el" href="classWt_1_1WTextEdit.html#a8023b2dbe675a22f30a563704d9ae475">Wt::WTextEdit</a>.</p>

</div>
</div>
<a class="anchor" id="aad1a86ffe8e18eed8a2ef6cf6b9300ba"></a><!-- doxytag: member="Wt::WTextArea::setValueText" ref="aad1a86ffe8e18eed8a2ef6cf6b9300ba" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextArea::setValueText </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><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the current value. </p>
<p>Calls <a class="el" href="classWt_1_1WTextArea.html#a1f05060c037d13c2c6c26f51f1fb9640" title="Sets the content of the text area.">setText()</a>. </p>

<p>Implements <a class="el" href="classWt_1_1WFormWidget.html#a129d31b145f2614f608a852ca4e91731">Wt::WFormWidget</a>.</p>

</div>
</div>
<a class="anchor" id="a7a2951a0835099cffda19f217c009e20"></a><!-- doxytag: member="Wt::WTextArea::valueText" ref="a7a2951a0835099cffda19f217c009e20" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WTextArea::valueText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current value. </p>
<p>Returns <a class="el" href="classWt_1_1WTextArea.html#ad8b89ce30df2b02894c53b6ed71fe4a6" title="Returns the current content.">text()</a>. </p>

<p>Implements <a class="el" href="classWt_1_1WFormWidget.html#a9e1ffd440abc07ce883d0a7b1a3883f6">Wt::WFormWidget</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 Thu Nov 1 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>