<doc>
  <legacy_id>1786</legacy_id>
  <name>selectedObjectChanged</name>
  <type>message</type>
  <syntax>
    <example>selectedObjectChanged</example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
    <card/>
    <group/>
    <field/>
    <button/>
    <graphic/>
    <scrollbar/>
    <player/>
    <image/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Developing with LiveCode</category>
  </classification>
  <references>
    <command tag="choose">choose Command</command>
    <message tag="selectionChanged">selectionChanged Message</message>
  </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>Sent to an <glossary tag="object">object</glossary> when it is <property tag="selected">selected</property>.</summary>
  <examples>
    <example>on selectedObjectChanged <code><i>-- update a property-display stack</i></code> </p><p>  repeat for each line thisObjectID in the selectedObjects</p><p>    send "addToPalette" &amp;&amp; thisObjectID to stack "Object Palette"</p><p>  end repeat</p><p>end selectedObjectChanged</example>
  </examples>
  <description>
    <p>Handle the <b>selectedObjectChanged</b> <keyword tag="message box">message</keyword> if you want to perform some action when an <glossary tag="object">object</glossary> is <property tag="selected">selected</property>.</p><p/><p><b>Comments:</b></p><p>When an object is selected, the <b>selectedObjectChanged</b> <keyword tag="message box">message</keyword> is sent to the newly <property tag="selected">selected</property> <glossary tag="object">object</glossary>.</p><p/><p>When an object is deselected and no other object is selected--for example, when the user clicks the card or chooses the Browse tool--the <b>selectedObjectChanged</b> <keyword tag="message box">message</keyword> is sent to the <glossary tag="object">object</glossary> being deselected.</p>
  </description>
</doc>