{"identifier":86116,"topic":"Properties","name":"right","text":"<code><pre>the right of <i>card<\/i><u>\n<\/u>\nset <\/pre><\/code>[<code>the<\/pre><\/code>]<code> right of <i>button<\/i> to <i>integer<\/i> set <\/code>[<code>the<\/code>]<code> right of <i>field<\/i> to <i>integer<\/i> set <\/code>[<code>the<\/code>]<code> right of <i>window<\/i> to <i>integer<\/i><u> <\/u>get <\/code>[<code>the<\/code>]<code> right of menuBar <u> <\/u><\/code>The<code> right <\/code>property returns or sets an integer equal to item 3 of an element\u2019s rectangle.  If you set the right of an object, it moves horizontally; the object's size remains the same. You can\u2019t set<code> the right <\/code>of cards: use the<code> rect<\/code>,<code> height<\/code>, or<code> width<\/code> properties to resize the cards in a stack. <br>\n<br>\nYou can't set<code> the right <\/code>of the menu bar. <br><br>\n\n HyperCard determines<code> the right <\/code>of buttons, fields, and HyperCard\u2019s built-in windows relative to the top-left corner of the  current card.  <br><br>\n\n HyperCard determines<code> the right <\/code>of the card window relative to the top-left corner of the screen with the menu bar. <br>\n","related":{"85301":"bottom","91818":"bottomRight","86710":"height","74022":"left","74795":"location","79936":"rectangle","62877":"screenRect","81344":"scroll","86868":"top","87153":"topLeft","89143":"width"},"examples":"the right of card button 1\nthe right of bkgnd field id 34\nthe right of this card\nthe right of message box\nthe right of tool window\nthe right of card window\n\nset the right of bkgnd button \"Next\" to the right of bg btn \"Prev\"","demo":"on moveButton\n   put the <b>right <\/b>of bkgnd btn \"Run the Script\" into savedRight\n   set cursor to none\n   repeat for 23\n     put the <b>right <\/b>of bkgnd btn \"Run the Script\" - 26 into newRight\n     set the <b>right <\/b>of bkgnd btn \"Run the Script\" to newRight\n     if the <b>right <\/b>of bkgnd btn \"Run the Script\" < 0\n     then set the left of bkgnd btn \"Run the Script\" to \u00ac\n     the width of card window\n   end repeat\n   set the <b>right <\/b>of bkgnd btn \"Run the Script\" to savedRight\n end moveButton\n ","debug":{"9":["the right of card\r\rs"],"10":["You can't set the ri"]}}