{"identifier":81344,"topic":"Properties","name":"scroll","text":"<code>set <\/code>[<code>the<\/code>]<code> scroll of <i>field<\/i> to <i>integer<\/i> set the scroll of <\/code>[<code>the<\/code>]<code> card window \u00ac     to <i>point<\/i><\/code> <br><br>\n\n For scrolling fields, the<code> scroll <\/code>property returns or sets which lines of text currently appear (as indicated by the scroll bar). The<code> <i>integer<\/i> <\/code>represents the number of pixels that have scrolled above the top of the field\u2019s rectangle. For example, the number of lines scrolled in card field 1 equals<code> the scroll of card field 1 div the textHeight of card field 1<\/code>. <br>\n<br>\nFor fields, HyperCard pins the<code> scroll <\/code>to a number between 0 and the maximum value for the field. <br><br>\n\n For the card window, the<code> scroll <\/code>property returns or sets a point that specifies the current horizontal and vertical offsets of the portion of the card currently visible in the card window. It affects the card image only when the size of the window is smaller than the size of the card. <br>\n","related":{"24266":null,"85301":"bottom","91818":"bottomRight","86710":"height","74022":"left","74795":"location","79936":"rectangle","86116":"right","62877":"screenRect","83265":"style","86868":"top","87153":"topLeft","89143":"width"},"examples":"","demo":"on madScroller\n   put the rect of card window into theRect\n   set the rect of card window to left of cd window,top of cd window,\u00ac\n   left of cd window + 172, top of cd window + 64\n   repeat 10 times\n     set the <b>scroll<\/b> of card window to \u00ac\n     random(width of this card),random(height of this card)\n     wait 30\n   end repeat\n   set the rect of card window to theRect\n end madScroller\n ","debug":{"9":["set [the] scroll of "],"10":["For fields, HyperCar"]}}