<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<!-- THIS FILE IS GENERATED DO NOT EDIT -->


<erlref>
<header>
  <copyright>
    <year>2020</year>
    <holder>wxWidgets team.</holder></copyright>
  <legalnotice>Licensed under the wxWindows Free Documentation Licence, Version 3
  </legalnotice>
  <title>wxStaticText</title>
</header>
<module>wxStaticText</module>
<modulesummary>Functions for wxStaticText class</modulesummary>
<description><p>A static text control displays one or more lines of read-only text. <seeerl marker="wxStaticText"><c>wxStaticText</c></seeerl> supports the three classic text alignments, label ellipsization i.e. replacing parts of the text with the ellipsis ("...") if the label doesn't fit into the provided space and also formatting markup with <c>wxControl::SetLabelMarkup()</c> (not implemented in wx).
      </p><p>Styles</p><p>This class supports the following styles:
      </p><p>See: <seeerl marker="wxStaticBitmap"><c>wxStaticBitmap</c></seeerl>, <seeerl marker="wxStaticBox"><c>wxStaticBox</c></seeerl>
      </p>
  <p>This class is derived (and can use functions) from: 
    <seeerl marker="wxControl"><c>wxControl</c></seeerl> <seeerl marker="wxWindow"><c>wxWindow</c></seeerl> <seeerl marker="wxEvtHandler"><c>wxEvtHandler</c></seeerl></p>
  
  <p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_static_text.html">wxStaticText</url></p>
  </description>
<datatypes><datatype><name name="wxStaticText"/></datatype></datatypes>

<funcs>
  <func>
    <name name="new" arity="0" clause_i="1" since=""/>
    <fsummary>Default constructor. </fsummary>
    <desc><p>Default constructor. 
      </p></desc>
  </func>
  
  <func>
    <name name="new" arity="3" clause_i="1" since=""/>
    <fsummary>See: <c>new/4</c></fsummary>
  </func>
  
  <func>
    <name name="new" arity="4" clause_i="1" since=""/>
    <fsummary>Constructor, creating and showing a text control. </fsummary>
    <desc><p>Constructor, creating and showing a text control. 
      </p><p>See: <seemfa marker="#create/5"><c>create/5</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="create" arity="4" clause_i="1" since=""/>
    <fsummary>See: <c>create/5</c></fsummary>
  </func>
  
  <func>
    <name name="create" arity="5" clause_i="1" since=""/>
    <fsummary>Creation function, for two-step construction. </fsummary>
    <desc><p>Creation function, for two-step construction. 
      </p><p>For details see <seemfa marker="#new/4"><c>new/4</c></seemfa>. 
      </p></desc>
  </func>
  
  <func>
    <name name="getLabel" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the control's label, as it was passed to <c>wxControl:setLabel/2</c>. </fsummary>
    <desc><p>Returns the control's label, as it was passed to <seemfa marker="wxControl#setLabel/2"><c>wxControl:setLabel/2</c></seemfa>. 
      </p><p>Note that the returned string may contains mnemonics ("&amp;" characters) if they were passed to the <seemfa marker="wxControl#setLabel/2"><c>wxControl:setLabel/2</c></seemfa> function; use <c>GetLabelText()</c> (not implemented in wx) if they are undesired.
      </p><p>Also note that the returned string is always the string which was passed to <seemfa marker="wxControl#setLabel/2"><c>wxControl:setLabel/2</c></seemfa> but may be different from the string passed to <c>SetLabelText()</c> (not implemented in wx) (since this last one escapes mnemonic characters). 
      </p></desc>
  </func>
  
  <func>
    <name name="setLabel" arity="2" clause_i="1" since=""/>
    <fsummary>Change the label shown in the control. </fsummary>
    <desc><p>Change the label shown in the control. 
      </p><p>Notice that since wxWidgets 3.1.1 this function is guaranteed not to do anything if the label didn't really change, so there is no benefit to checking if the new label is different from the current one in the application code.
      </p><p>See: <seemfa marker="wxControl#setLabel/2"><c>wxControl:setLabel/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="wrap" arity="2" clause_i="1" since=""/>
    <fsummary>This functions wraps the controls label so that each of its lines becomes at most <c>width</c> pixels wide if possible (the lines are broken at words boundaries so it might not be the case if words are too long). </fsummary>
    <desc><p>This functions wraps the controls label so that each of its lines becomes at most <c>width</c> pixels wide if possible (the lines are broken at words boundaries so it might not be the case if words are too long). 
      </p><p>If <c>width</c> is negative, no wrapping is done. Note that this width is not necessarily the total width of the control, since a few pixels for the border (depending on the controls border style) may be added.
      </p><p>Since: 2.6.2 
      </p></desc>
  </func>
  
  <func>
    <name name="destroy" arity="1" clause_i="1" since=""/>
    <fsummary>Destructor</fsummary>
    <desc><p>Destroys the object.</p></desc>
  </func>
  </funcs>
</erlref>
