{"identifier":74795,"topic":"Properties","name":"location","text":"<code>set <\/code>[<code>the<\/code>]<code> loc of <i>button<\/i> to <i>point<\/i> set <\/code>[<code>the<\/code>]<code> loc of <i>field<\/i> to <i>point<\/i> set <\/code>[<code>the<\/code>]<code> loc of <i>window<\/i> to <i>point<\/i> set <\/code>[<code>the<\/code>]<code> loc of <i>externalWindow<\/i> \u00ac     to <i>point<\/i> <\/code> The<code> location <\/code>(or<code> loc<\/code>) property returns or sets the <u>center<\/u> point of a button or field and the <u>top-left <\/u>corner of a window. Setting the location of button, field, or window moves it to the new location. <br>\n<br>\nHyperCard determines the location\nof buttons, fields, and HyperCard\u2019s built-in windows relative to the \ntop-left corner of the current card. \n\nFor a window displaying a stack, HyperCard determines the location of the card window relative to the top-left corner of the screen with the menu bar.\n\nHyperCard adjusts the horizontal offset of the card window to the closest multiple of 16 to the number specified.","related":{"85301":"bottom","91818":"bottomRight","86710":"height","74022":"left","79936":"rectangle","86116":"right","62877":"screenRect","81344":"scroll","47827":"show","86868":"top","87153":"topLeft","89143":"width"},"examples":"the location of card button 1\nthe loc of bkgnd field id 34\nset the loc of bkgnd button \"Next\" to the clickLoc\n\nthe loc of card window\n\n-- built-in windows:\nthe loc of message box\nthe loc of tool window\n\n-- external windows:\nset the loc of window \"Script of stack My HD:Home\" to 100,100","demo":"","debug":{"9":["set [the] loc of but"],"10":["HyperCard determines"]}}