<doc>
  <legacy_id>1914</legacy_id>
  <name>titleWidth</name>
  <type>property</type>
  <syntax>
    <example>set the titleWidth of <i>button</i> to <i>pixels</i></example>
  </syntax>
  <library></library>
  <objects>
    <button/>
  </objects>
  <synonyms>
    <synonym>labelWidth</synonym>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <property tag="label">label Property</property>
    <property tag="menuMode">menuMode Property</property>
    <property tag="name">name Property</property>
    <property tag="width">width Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Specifies the amount of a <glossary tag="button">button's</glossary> width used to display the <glossary tag="button">button's</glossary> <property tag="name">name</property> or <property tag="label">label</property> <glossary tag="property">property</glossary> to the left of the <keyword tag="button">button</keyword>.</summary>
  <examples>
    <example>set the titleWidth of button "Options" to 90</example>
    <example>set the titleWidth of button "Standard" to 0</example>
  </examples>
  <description>
    <p>Use the <b>titleWidth</b> <glossary tag="property">property</glossary> to create <glossary tag="popup menu">popup menus</glossary> with a title.</p><p/><p><b>Value:</b></p><p>The <b>titleWidth</b> of a <keyword tag="button">button</keyword> is a <href tag="../glossary/nondashnegative.xml">non-negative</href> <keyword tag="integer">integer</keyword>.</p><p/><p>By default, the <b>titleWidth</b> <glossary tag="property">property</glossary> of newly created <glossary tag="button">buttons</glossary> is set to zero.</p><p/><p><b>Comments:</b></p><p>The <b>titleWidth</b> is taken from the total <property tag="width">width</property> of the <keyword tag="button">button</keyword>. This means that setting a <b>titleWidth</b> makes the <keyword tag="button">button</keyword> narrower, and you may have to increase the <property tag="width">width</property> <glossary tag="property">property</glossary> to accommodate both title and <keyword tag="button">button</keyword>.</p>
  </description>
</doc>