<doc>
  <legacy_id>1945</legacy_id>
  <name>selectedButton</name>
  <type>function</type>
  <syntax>
    <example>the selectedButton of [card | background] family <i>familyNumber</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <property tag="family">family Property</property>
    <property tag="hilitedButton">hilitedButton Property</property>
    <property tag="radioBehavior">radioBehavior 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><glossary tag="return">Returns</glossary> the name of the currently <property tag="hilite">highlighted</property> <keyword tag="button">button</keyword> in a family.</summary>
  <examples>
    <example>the selectedButton of family 3</example>
    <example>put the selectedButton of family myFamily into thisButton</example>
  </examples>
  <description>
    <p>Use the <b>selectedButton</b> function to find out the current setting of a <glossary tag="radio button">radio-button cluster</glossary> controlled by the <property tag="family">family</property> <glossary tag="property">property</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>familyNumber</i> is a positive <keyword tag="integer">integer</keyword>.</p><p/><p><b>Value:</b></p><p>The <b>selectedButton</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <keyword tag="string">string</keyword> of the form<code><i>domain</i> button <i>buttonNumber</i></code>, where<code><i>domain</i></code>is either<code> card </code>or<code> background</code>.</p><p/><p><b>Comments:</b></p><p>This function exists for compatibility with imported HyperCard stacks. You can use the <b>radioBehavior</b> <glossary tag="property">property</glossary> to cause a <command tag="group">group</command> consisting of <glossary tag="button">buttons</glossary> to behave as a <glossary tag="radio button">radio cluster</glossary>, and use the <property tag="hilitedButton">hilitedButton</property> <glossary tag="property">property</glossary> to find out which <keyword tag="button">button</keyword> in the <command tag="group">group</command> is <property tag="hilite">highlighted</property>.</p>
  </description>
</doc>