{"identifier":79936,"topic":"Properties","name":"rectangle","text":"<code> set <\/code>[<code>the<\/code>]<code> rect of <i>button<\/i> to <i>rectangle<\/i> set <\/code>[<code>the<\/code>]<code> rect of <i>field<\/i> to <i>rectangle<\/i> set <\/code>[<code>the<\/code>]<code> rect of <i>card<\/i> to <i>rectangle<\/i><u> <\/u>set <\/code>[<code>the<\/code>]<code> rect of <i>window<\/i> to <i>rectangle<\/i> get [the] rect of menuBar <\/code> The<code> rectangle <\/code>property returns or sets the rectangular coordinates of buttons, fields, cards, and windows, and it returns the coordinates of the menu bar. Setting the rectangle of a card changes the size of <u>all the cards<\/u> in a stack; setting the rectangle of the card window resizes the window, not the card. <br>\n<br>\n HyperCard determines<code> the rectangle <\/code>of buttons, fields, cards, and its built-in windows relative to the top-left corner of the current card. HyperCard determines<code> the rectangle <\/code>of the card window relative to the top-left corner of the screen with the menu bar.  <br><br>\n\n Note: You can\u2019t set the<code> rect <\/code>of an inactive card window or of the menu bar. <br>\n","related":{"85301":"bottom","91818":"bottomRight","86710":"height","74022":"left","74795":"location","86116":"right","62877":"screenRect","81344":"scroll","86868":"top","87153":"topLeft","89143":"width"},"examples":"the rectangle of card button 1\nthe rectangle of bkgnd field id 34\nthe rectangle of this card\nthe rect of message box\nthe rect of tool window\nthe rect of card window\n\nset the rect of bkgnd button \"Next\" to the rect of bg btn \"Prev\"\n\nset the rect of card window to the rect of this card","demo":"on talkAboutRects\n   answer \"The rect of bkgnd btn \u201cRun the Script\u201d is:\" && \u00ac\n   the <b>rect<\/b> of bkgnd btn \"Run the Script\" & return & return & \u00ac\n   \"The rect of this card is:\" && the <b>rect<\/b> of this card & return & \u00ac\n   return &\"The rect of the card window is:\" && the <b>rect<\/b> of the card window\n end talkAboutRects\n ","debug":{"9":["\rset [the] rect of b"],"10":["\rHyperCard determine"]}}