<doc>
  <legacy_id>2315</legacy_id>
  <name>clickChar</name>
  <type>function</type>
  <syntax>
    <example>the clickChar</example>
    <example>clickChar()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <function tag="clickChunk">clickChunk Function</function>
    <function tag="clickCharChunk">clickCharChunk Function</function>
    <function tag="mouseChar">mouseChar Function</function>
    <function tag="charToNum">charToNum Function</function>
    <function tag="clickText">clickText Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the <keyword tag="character">character</keyword> the user last clicked in a <keyword tag="field">field</keyword>.</summary>
  <examples>
    <example>the clickChar</example>
    <example>if the clickChar is not "*" then beep 2</example>
  </examples>
  <description>
    <p>Use the <b>clickChar</b> <control_st tag="function">function</control_st> within a <message tag="mouseDown">mouseDown</message>, <message tag="mouseUp">mouseUp</message>, or <message tag="selectionChanged">selectionChanged</message> <glossary tag="handler">handler</glossary> to determine which <keyword tag="character">character</keyword> the user clicked, in order to provide <glossary tag="hypertext">hypertext</glossary> (clickable text) or take some action based on the clicked <keyword tag="character">character</keyword>.</p><p/><p><b>Value:</b></p><p>The <b>clickChar</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <keyword tag="character">character</keyword>.</p><p/><p><b>Comments:</b></p><p>The <b>clickChar</b> <control_st tag="function">function</control_st> is cleared at the next mouse click, as well as after some editing actions such as deleting text. If the last click was not in a <keyword tag="field">field</keyword>, the <b>clickChar</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> empty.</p><p/><p>If the field is locked, the <b>clickChar</b> function is most useful within a <glossary tag="handler">handler</glossary> (such as <message tag="mouseDown">mouseDown</message> or <message tag="mouseUp">mouseUp</message>) that is <glossary tag="trigger">triggered</glossary> by the mouse click.</p><p/><p>If the field is unlocked, <b>mouseDown</b> and <message tag="mouseUp">mouseUp</message> <glossary tag="message">messages</glossary> are not sent when the user clicks in the <keyword tag="field">field</keyword> (unless the user right-clicks or holds down the Control key while clicking). Use the <b>clickChar</b> <control_st tag="function">function</control_st> within a <message tag="selectionChanged">selectionChanged</message> <glossary tag="handler">handler</glossary> to determine what <keyword tag="characters">characters</keyword> the user is editing in an <glossary tag="unlock">unlocked</glossary> <keyword tag="field">field</keyword>.</p><p/><p>To find the position of the <b>clickChar</b>, use the <function tag="clickChunk">clickChunk</function> <control_st tag="function">function</control_st>.</p>
  </description>
</doc>