<html> <head><title>ClanLib Reference: CL_InputBox</title></head> <body text=black link=blue vlink=#800080 bgcolor=white topmargin=0 leftmargin=0> <table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td><img border=0 src="../images/eyeheader-main-purple-a.gif" alt="ClanSoft logo" width=525 height=96></td></tr> <tr bgcolor=#dadada><td align=left valign=top><img border=0 src="../images/eyeheader-main-purple-b.gif" alt="ClanSoft logo" width=190 height=14></td><td align=right valign=top><img border=0 src="../images/clanlib_light.gif" width=42 height=14></td></tr></table> <table align=center border=0 cellspacing=10> <tr> <td><a href="entire_class_index.html">Entire Class Index</a></td> <td><a href="class_index.html">Main Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="global_index.html">Global Index</a></td> </table><h1 align=center>Class CL_InputBox</h1><p> <b> Inputbox component</b><br> Contained in: <a href="global_index.html">global</a><br> Derived from: <a href="CL_Component.html">CL_Component</a> <br> Derived by: <i>none</i> <br>Group: GUI (Controls) <p> #include <ClanLib/gui.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=left><h3>Construction:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_InputBox.html#1616"><tt><font color=blue><b>CL_InputBox</b></font></tt></a></td><td><tt>(<a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;</td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_InputBox.html#1617"><tt><font color=blue><b>CL_InputBox</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;</td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_InputBox.html#1618"><tt><font color=blue><b>CL_InputBox</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;</td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_InputBox.html#1619"><tt><font color=blue><b>CL_InputBox</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="CL_InputBox.html#1620"><tt><font color=blue><b>~CL_InputBox</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=left><h3>Attributes:</h3></td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> </td><td align=right><a href="CL_InputBox.html#1621"><tt><font color=blue><b>get_text</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1622"><tt><font color=blue><b>get_length</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> </td><td align=right><a href="CL_InputBox.html#1623"><tt><font color=blue><b>get_marked_text</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1624"><tt><font color=blue><b>has_marked_text</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1625"><tt><font color=blue><b>get_selection_start</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1626"><tt><font color=blue><b>get_selection_length</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1627"><tt><font color=blue><b>get_max_length</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1628"><tt><font color=blue><b>in_password_mode</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1629"><tt><font color=blue><b>is_read_only</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1630"><tt><font color=blue><b>get_cursor_position</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1631"><tt><font color=blue><b>is_edited</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=left><h3>Operations:</h3></td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1632"><tt><font color=blue><b>set_text</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1633"><tt><font color=blue><b>set_text</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>number</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1634"><tt><font color=blue><b>set_text</b></font></tt></a></td><td><tt>(<tt><font color=purple>double</font></tt> <tt><font color=blue>number</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1635"><tt><font color=blue><b>set_max_length</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>length</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1636"><tt><font color=blue><b>set_password_mode</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt> = true)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1637"><tt><font color=blue><b>set_read_only</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt> = true)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1638"><tt><font color=blue><b>select_all</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1639"><tt><font color=blue><b>deselect</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1640"><tt><font color=blue><b>set_selection</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>start</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>length</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1641"><tt><font color=blue><b>set_cursor_position</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>pos</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1642"><tt><font color=blue><b>clear</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1643"><tt><font color=blue><b>backspace</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1644"><tt><font color=blue><b>del</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1645"><tt><font color=blue><b>cut</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1646"><tt><font color=blue><b>move_cursor</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>delta</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1647"><tt><font color=blue><b>move_cursor_word</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>delta</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1648"><tt><font color=blue><b>home</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1649"><tt><font color=blue><b>end</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_InputBox.html#1650"><tt><font color=blue><b>set_edited</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>on</font></tt> = true)</tt>;</td> <tr valign=top><td align=left><h3>Signals:</h3></td> <tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt>const</tt> <tt><font color=navy>std::string</font></tt>& >&</tt> </td><td align=right><a href="CL_InputBox.html#1651"><tt><font color=blue><b>sig_changed</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> </td><td align=right><a href="CL_InputBox.html#1652"><tt><font color=blue><b>sig_return_pressed</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> </td><td align=right><a href="CL_InputBox.html#1653"><tt><font color=blue><b>sig_activity</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td><tr><td colspan=3><h3>private function member index:</h3></td> <tr valign=top><td align=left><h3>Implementation:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_InputBox.html#1654"><tt><font color=blue><b>CL_InputBox</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_InputBox.html#1654"><tt><font color=blue><b>CL_InputBox</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="1616"><font size=+1><b>CL_InputBox::CL_InputBox</b></font></a> - InputBox Constructor<br><tt></tt> <a href="CL_InputBox.html#1616"><tt><font color=blue><b>CL_InputBox</b></font></tt></a><tt>(<a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1617"><font size=+1><b>CL_InputBox::CL_InputBox</b></font></a> - InputBox Constructor<br><tt></tt> <a href="CL_InputBox.html#1617"><tt><font color=blue><b>CL_InputBox</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1618"><font size=+1><b>CL_InputBox::CL_InputBox</b></font></a> - InputBox Constructor<br><tt></tt> <a href="CL_InputBox.html#1618"><tt><font color=blue><b>CL_InputBox</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1619"><font size=+1><b>CL_InputBox::CL_InputBox</b></font></a> - InputBox Constructor<br><tt></tt> <a href="CL_InputBox.html#1619"><tt><font color=blue><b>CL_InputBox</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& <tt><font color=blue>pos</font></tt>, <tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>, <a href="CL_Component.html"><tt><font color=navy><b>CL_Component</b></font></tt></a>* <tt><font color=blue>parent</font></tt>, <a href="CL_StyleManager.html"><tt><font color=navy><b>CL_StyleManager</b></font></tt></a>* <tt><font color=blue>style</font></tt> = NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1643"><font size=+1><b>CL_InputBox::backspace</b></font></a> - Deletes the character to the left of the text cursor and moves the cursor one position to the left.<br> If a text has been marked, the cursor will be put at the beginning of the marked text<br> and the marked text will be removed.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1643"><tt><font color=blue><b>backspace</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1642"><font size=+1><b>CL_InputBox::clear</b></font></a> - Syntactic sugar for set_text("").<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1642"><tt><font color=blue><b>clear</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1645"><font size=+1><b>CL_InputBox::cut</b></font></a> - Cut the selected text if any.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1645"><tt><font color=blue><b>cut</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1644"><font size=+1><b>CL_InputBox::del</b></font></a> - Deletes the character on the right side of the text cursor.<br> If a text has been marked, the cursor will be put at the beginning of the marked text and the marked<br> text will be removed.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1644"><tt><font color=blue><b>del</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1639"><font size=+1><b>CL_InputBox::deselect</b></font></a> - Deselects all text (i.e. removes marking) and leaves the cursor at the current position. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1639"><tt><font color=blue><b>deselect</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1649"><font size=+1><b>CL_InputBox::end</b></font></a> - Moves the text cursor to the right end of the line.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1649"><tt><font color=blue><b>end</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;<br><blockquote> If mark is true, text will be marked towards the last position<br> If mark is false, any marked text will be unmarked if the cursor is moved. </blockquote> <hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1630"><font size=+1><b>CL_InputBox::get_cursor_position</b></font></a> - Returns the current cursor position.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_InputBox.html#1630"><tt><font color=blue><b>get_cursor_position</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1622"><font size=+1><b>CL_InputBox::get_length</b></font></a> - Returns the length of the inputfield text.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_InputBox.html#1622"><tt><font color=blue><b>get_length</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1623"><font size=+1><b>CL_InputBox::get_marked_text</b></font></a> - Returns the marked text from the inputfield.<br><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> <a href="CL_InputBox.html#1623"><tt><font color=blue><b>get_marked_text</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1627"><font size=+1><b>CL_InputBox::get_max_length</b></font></a> - Returns the maximum permitted length of the text.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_InputBox.html#1627"><tt><font color=blue><b>get_max_length</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1626"><font size=+1><b>CL_InputBox::get_selection_length</b></font></a> - Returns the length of current selection.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_InputBox.html#1626"><tt><font color=blue><b>get_selection_length</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1625"><font size=+1><b>CL_InputBox::get_selection_start</b></font></a> - Returns the position where the selection starts.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_InputBox.html#1625"><tt><font color=blue><b>get_selection_start</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1621"><font size=+1><b>CL_InputBox::get_text</b></font></a> - Returns the inputfield text.<br><tt><tt>const</tt> <tt><font color=navy>std::string</font></tt>&</tt> <a href="CL_InputBox.html#1621"><tt><font color=blue><b>get_text</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1624"><font size=+1><b>CL_InputBox::has_marked_text</b></font></a> - Returns true if part of the text has been marked by the user.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_InputBox.html#1624"><tt><font color=blue><b>has_marked_text</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1648"><font size=+1><b>CL_InputBox::home</b></font></a> - Moves the text cursor to the left end of the line.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1648"><tt><font color=blue><b>home</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;<br><blockquote> If mark is true, text will be marked towards the first position<br> If mark is false, any marked text will be unmarked if the cursor is moved. </blockquote> <hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1628"><font size=+1><b>CL_InputBox::in_password_mode</b></font></a> - Returns true if password mode is enabled, false othewise.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_InputBox.html#1628"><tt><font color=blue><b>in_password_mode</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1631"><font size=+1><b>CL_InputBox::is_edited</b></font></a> - Returns true if the contents has been edited.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_InputBox.html#1631"><tt><font color=blue><b>is_edited</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1629"><font size=+1><b>CL_InputBox::is_read_only</b></font></a> - Returns whether the inputfield is read-only. <br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_InputBox.html#1629"><tt><font color=blue><b>is_read_only</b></font></tt></a><tt>() <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1646"><font size=+1><b>CL_InputBox::move_cursor</b></font></a> - Moves the cursor position.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1646"><tt><font color=blue><b>move_cursor</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>delta</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;<br><blockquote> If delta is positive, the cursor is moved forward.<br> If delta is negative, the cursor is moved backward.<br> If mark is true, the text is marked.</blockquote> <hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1647"><font size=+1><b>CL_InputBox::move_cursor_word</b></font></a> - Moves the cursor by word.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1647"><tt><font color=blue><b>move_cursor_word</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>delta</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>mark</font></tt> = false)</tt>;<br><blockquote> If delta is positive, the cursor is moved forward.<br> If delta is negative, the cursor is moved backward.<br> If mark is true, the text is marked.</blockquote> <hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1638"><font size=+1><b>CL_InputBox::select_all</b></font></a> - Selects all text, and moves the cursor to the end.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1638"><tt><font color=blue><b>select_all</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1641"><font size=+1><b>CL_InputBox::set_cursor_position</b></font></a> - Sets the cursor position to pos. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1641"><tt><font color=blue><b>set_cursor_position</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>pos</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1650"><font size=+1><b>CL_InputBox::set_edited</b></font></a> - Sets the edited flag to on. <br> The edited flag is changed to true whenever the user changes its contents. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1650"><tt><font color=blue><b>set_edited</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>on</font></tt> = true)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1635"><font size=+1><b>CL_InputBox::set_max_length</b></font></a> - Set the maximum length of the text in the editor.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1635"><tt><font color=blue><b>set_max_length</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>length</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1636"><font size=+1><b>CL_InputBox::set_password_mode</b></font></a> - If enable is true, display asterisks instead of the characters actually entered.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1636"><tt><font color=blue><b>set_password_mode</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt> = true)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1637"><font size=+1><b>CL_InputBox::set_read_only</b></font></a> - Enables or disables read-only mode.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1637"><tt><font color=blue><b>set_read_only</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt> = true)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1640"><font size=+1><b>CL_InputBox::set_selection</b></font></a> - Sets the marked area at start and be length characters long. <br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1640"><tt><font color=blue><b>set_selection</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>start</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>length</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1632"><font size=+1><b>CL_InputBox::set_text</b></font></a> - Sets the line edit text to text, clears the selection and moves the cursor to the end of the line.<br> If necessary the text is truncated to get_max_length().<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1632"><tt><font color=blue><b>set_text</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>text</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1633"><font size=+1><b>CL_InputBox::set_text</b></font></a> - Sets the line edit contents to a plain text containing the printed value of num.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1633"><tt><font color=blue><b>set_text</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>number</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1634"><font size=+1><b>CL_InputBox::set_text</b></font></a> - Sets the line edit contents to a plain text containing the printed value of num.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_InputBox.html#1634"><tt><font color=blue><b>set_text</b></font></tt></a><tt>(<tt><font color=purple>double</font></tt> <tt><font color=blue>number</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1653"><font size=+1><b>CL_InputBox::sig_activity</b></font></a> - This signal is emitted whenever some character is changed/added/removed, cursor moved etc.<br><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> <a href="CL_InputBox.html#1653"><tt><font color=blue><b>sig_activity</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1651"><font size=+1><b>CL_InputBox::sig_changed</b></font></a> - This signal is emitted whenever text is changed in the inputfield.<br><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt>const</tt> <tt><font color=navy>std::string</font></tt>& >&</tt> <a href="CL_InputBox.html#1651"><tt><font color=blue><b>sig_changed</b></font></tt></a><tt>()</tt>;<br><blockquote> const std::string & - Contains the new string.</blockquote> <hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1652"><font size=+1><b>CL_InputBox::sig_return_pressed</b></font></a> - This signal is emitted when enter is pressed in the inputfield.<br><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> <a href="CL_InputBox.html#1652"><tt><font color=blue><b>sig_return_pressed</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="1620"><font size=+1><b>CL_InputBox::~CL_InputBox</b></font></a> - InputBox Destructor<br><tt><tt>virtual</tt> </tt> <a href="CL_InputBox.html#1620"><tt><font color=blue><b>~CL_InputBox</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <hr noshade> <h2>Variable Member Descriptions:</h2> <hr noshade> </body> </html>