<doc>
  <legacy_id>1522</legacy_id>
  <name>family</name>
  <type>property</type>
  <syntax>
    <example>set the family of <i>button</i> to <i>number</i></example>
  </syntax>
  <library></library>
  <objects>
    <button/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <function tag="selectedButton">selectedButton Function</function>
    <property tag="hilitedButtonName">hilitedButtonName 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>Coordinates a set of <glossary tag="radio button">radio buttons</glossary> so that only one <keyword tag="button">button</keyword> of a family can be <property tag="hilite">highlighted</property>.</summary>
  <examples>
    <example>set the family of button "Choice #1" to 3</example>
  </examples>
  <description>
    <p>Use the <b>family</b> <glossary tag="property">property</glossary> to set up a cluster of related <glossary tag="button">buttons</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>family</b> of a button is an <keyword tag="integer">integer</keyword>.</p><p/><p>By default, the <b>family</b> <glossary tag="property">property</glossary> of newly created <glossary tag="button">buttons</glossary> is set to zero (no family).</p><p/><p><b>Comments:</b></p><p>Setting the <b>family</b> of a <keyword tag="button">button</keyword> to a number makes the <keyword tag="button">button</keyword> a member of that family. All the <glossary tag="button">buttons</glossary> in a <keyword tag="card">card</keyword> or <command tag="group">group</command> whose <b>family</b> <glossary tag="property">property</glossary> is the same behave as a <glossary tag="radio button">radio-button cluster</glossary>: only one <keyword tag="button">button</keyword> in the family can be <property tag="hilite">highlighted</property> at a time, and <glossary tag="highlight">highlighting</glossary> another member of the family unhighlights all the others.</p><p/><p>If a button's <b>family</b> <glossary tag="property">property</glossary> is zero, it is not a member of any family.</p><p/><p>If the buttons are part of a group, the group's <b>backgroundBehavior</b> <glossary tag="property">property</glossary> must be set to true.</p><p/><p>This property exists to aid compatibility with imported HyperCard stacks. Unlike the property in HyperTalk, it has no effect on buttons whose <b>style</b> <glossary tag="property">property</glossary> is not "radioButton".</p><p/><p><code/><img src="202651"/> <b>Tip:</b><code/> You can also create a <glossary tag="radio button">radio-button cluster</glossary> by putting the <glossary tag="button">buttons</glossary> in a <command tag="group">group</command> and setting the <glossary tag="group">group's</glossary> <property tag="radioBehavior">radioBehavior</property> <glossary tag="property">property</glossary> to true.</p>
  </description>
</doc>