HSCROLL()

From Recital Documentation Wiki
Revision as of 16:21, 2 December 2009 by Helengeorge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to designate a screen area to scroll horizontally


Syntax

HSCROLL(<expN1>,<expN2>,<expN3>,<expN4>,<expN5>)


See Also

SCROLL, SCROLL(), SET SCROLL, TEXTEDIT()


Description

The HSCROLL() function designates an area of the screen to scroll left, scroll right, or blank out. This function can be used to emulate windows. <expN1>, <expN2>, <expN3> and <expN4> are the beginning row, beginning column, ending row, and ending column screen coordinates of the area. <expN5> is the number of columns to scroll. A value greater than zero scrolls right. A value less than zero scrolls to the left. A value of zero clears the specified scroll area.


Example

// Create window with text
@05,35,09,46
@06,36 say "ABCDEFGHIJ"
@07,36 say"abcdefghij"
@08,36 say "0123456789"
// Scroll slowly one column at a time until
// the window is clear.
for i = 1 to 10
    hscroll(6,36,8,45,1)
    sleep 1
next


Products

Recital