<doc>
  <legacy_id>2435</legacy_id>
  <name>topLeft</name>
  <type>property</type>
  <syntax>
    <example>set the topLeft of <i>object</i> to <i>left,top</i></example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
    <card/>
    <group/>
    <field/>
    <button/>
    <graphic/>
    <scrollbar/>
    <player/>
    <image/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <function tag="selectedLoc">selectedLoc Function</function>
    <property tag="left">left Property</property>
    <property tag="topRight">topRight 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 location of the specified <glossary tag="object">object's</glossary> upper left corner.</summary>
  <examples>
    <example>set the topLeft of player 1 to 0,0</example>
    <example>set the topLeft of last field to the bottomRight of field 1</example>
  </examples>
  <description>
    <p>Use the <b>topLeft</b> <glossary tag="property">property</glossary> to change the placement of a <keyword tag="control">control</keyword> or window.</p><p/><p><b>Value:</b></p><p>The <b>topLeft</b> of an <glossary tag="object">object</glossary> is any <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a <keyword tag="point">point</keyword>--two <glossary tag="integer">integers</glossary> separated by a comma.</p><p/><p>The first item of the <b>topLeft</b> is the distance in <property tag="pixels">pixels</property> from the left edge of the screen (for <function tag="stacks">stacks</function>) or <keyword tag="card">card</keyword> (for all other <glossary tag="object">objects</glossary>) to the left edge of the <glossary tag="object">object</glossary>. The second <keyword tag="item">item</keyword> is the distance in <property tag="pixels">pixels</property> from the top edge of the screen (for <function tag="stacks">stacks</function>) or <keyword tag="card">card</keyword> (for all other <glossary tag="object">objects</glossary>) to the top edge of the <glossary tag="object">object</glossary>.</p><p/><p>For cards, the <b>topLeft</b> <glossary tag="property">property</glossary> is <href tag="../glossary/readdashonly.xml">read-only</href> and cannot be set.</p><p/><p><b>Comments:</b></p><p>The <b>topLeft</b> of a <object tag="stack">stack</object> is in <href tag="glossary/Appearance/288.xml">absolute (screen) coordinates</href>. The first <keyword tag="item">item</keyword> (the <constant tag="left">left</constant>) of a card's <b>topLeft</b> <glossary tag="property">property</glossary> is always zero; the second <keyword tag="item">item</keyword> (the <keyword tag="top">top</keyword>) is always zero. The <b>topLeft</b> of a <command tag="group">group</command> or <keyword tag="control">control</keyword> is in <glossary tag="relative coordinates">relative (window) coordinates</glossary>.</p><p/><p>In window coordinates, the point<code> 0,0 </code>is at the top left of the stack window. In screen coordinates, the point<code> 0,0 </code>is at the top left of the screen.</p><p/><p>Changing the <b>topLeft</b> of an <glossary tag="object">object</glossary> moves it to the new position without resizing it. To change an <glossary tag="object">object's</glossary> size, set its <property tag="height">height</property>, <property tag="width">width</property>, or <keyword tag="rectangle">rectangle</keyword> <property tag="properties">properties</property>.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> The order of the <i>top</i> and <i>left</i> <glossary tag="parameter">parameters</glossary> is reversed compared to the <glossary tag="property">property</glossary> name: left comes first, then top.</p>
  </description>
</doc>