<doc>
  <legacy_id>2367</legacy_id>
  <name>thumbPosition</name>
  <type>property</type>
  <syntax>
    <example>set the thumbPosition of <i>scrollbar</i> to <i>number</i></example>
  </syntax>
  <library></library>
  <objects>
    <scrollbar/>
  </objects>
  <synonyms>
    <synonym>thumbPos</synonym>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <message tag="scrollbarBeginning">scrollbarBeginning Message</message>
    <message tag="scrollbarLineInc">scrollbarLineInc Message</message>
    <property tag="thumbSize">thumbSize Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies the current position of a <glossary tag="scrollbar">scrollbar's</glossary> draggable <glossary tag="scrollbar thumb">thumb</glossary>.</summary>
  <examples>
    <example>set the thumbPosition of scrollbar 1 to 400</example>
    <example>set the thumbPosition of me to (3 * the thumbSize of me)</example>
  </examples>
  <description>
    <p>Use the <b>thumbPosition</b> to move a <glossary tag="scrollbar">scrollbar's</glossary> draggable <glossary tag="scrollbar thumb">thumb</glossary> when the content it <glossary tag="control">controls</glossary> is scrolled, or to check where the <glossary tag="scrollbar thumb">thumb</glossary> has been dragged in order to scroll the content.</p><p/><p><b>Value:</b></p><p>The <b>thumbPosition</b> of a <keyword tag="scrollbar">scrollbar</keyword> is a number between the <glossary tag="scrollbar">scrollbar's</glossary> <property tag="startValue">startValue</property> and <property tag="endValue">endValue</property>.</p><p/><p>By default, the <b>thumbPosition</b> <glossary tag="property">property</glossary> of newly created <glossary tag="scrollbar">scrollbars</glossary> is set to zero (the <keyword tag="default">default</keyword> <property tag="startValue">startValue</property>).</p><p/><p><b>Comments:</b></p><p>The <b>thumbPosition</b> is the location of the top edge (for vertical <glossary tag="scrollbar">scrollbars</glossary>) or left edge (for horizontal <glossary tag="scrollbar">scrollbars</glossary>) of the <glossary tag="scrollbar thumb">scrollbar thumb</glossary>, using the scale set by the <glossary tag="scrollbar">scrollbar's</glossary> startPosition and endPosition <property tag="properties">properties</property>.</p><p/><p>If the <b>style</b> of the <keyword tag="scrollbar">scrollbar</keyword> is<code> scale</code>, the maximim <b>thumbPosition</b>, when the <glossary tag="scrollbar thumb">scrollbar thumb</glossary> is all the way to the bottom (for a vertical <keyword tag="scrollbar">scrollbar</keyword>) or right (for a horizontal <keyword tag="scrollbar">scrollbar</keyword>), is the <property tag="endValue">endValue</property>.</p><p/><p>If the <b>style</b> of the <keyword tag="scrollbar">scrollbar</keyword> is<code> scrollbar </code>or<code> progress</code>, the maximum value of the <b>thumbPosition</b> is the <glossary tag="scrollbar">scrollbar's</glossary> <property tag="endValue">endValue</property> minus the <property tag="thumbSize">thumbSize</property>.</p>
  </description>
</doc>