{"identifier":89143,"topic":"Properties","name":"width","text":"<code>set <\/code>[<code>the<\/code>]<code> width of <i>button<\/i> to <i>integer<\/i> set <\/code>[<code>the<\/code>]<code> width of <i>field<\/i> to <i>integer<\/i><u> <\/u>set <\/code>[<code>the<\/code>]<code> width of <i>card<\/i> to <i>integer<\/i> set <\/code>[<code>the<\/code>]<code> width of <i>window<\/i> to integer get <\/code>[<code>the<\/code>]<code> width of menuBar <u> <\/u><\/code>The<code> width <\/code>property returns or sets an integer equal to the width in pixels of the specified object or window. Setting the width of a button, field, or card window resizes it.  <br><br>\n\n Setting the width of a card resizes all the cards in a stack.  <br><br>\n\n You can't set the menu bar's width. <br>\n<br>\n\nNote: HyperCard restricts the width of a card to 32-pixel increments beginning from 64, the smallest width. For example, setting the width of a card to 420 results in a width of 416.\n\nHyperCard maintains the location (center coordinate) of the object, expanding or shrinking it on both\nsides evenly.","related":{"85301":"bottom","91818":"bottomRight","86710":"height","74022":"left","74795":"location","79936":"rectangle","86116":"right","62877":"screenRect","81344":"scroll","86868":"top","87153":"topLeft"},"examples":"the width of card button 1\nthe width of bkgnd field id 34\nthe width of this card\nthe width of message box\nthe width of tool window\nthe width of card window\n\nset the width of bkgnd button \"Next\" to the width of bg btn \"Prev\"","demo":"","debug":{"9":["set [the] width of b"],"10":["\rNote: HyperCard res"]}}