GRAPHIC SET SCROLLTEXT statement

Purpose | Enables or disables Graphic ScrollText Mode.
Syntax | GRAPHIC SET SCROLLTEXT [NumrExpr&]

Remarks

GRAPHIC SET SCROLLTEXT enables or disables scroll mode for the graphic target which is currently attached to the graphic stream. It has no effect on any other graphic target. If NumrExpr& is true (non-zero), ScrollText mode is enabled. If false (zero), the mode is disabled. If NumrExpr& is missing, the default is to enable ScrollText Mode.

With ScrollText Mode, you can control how PowerBASIC prints text on a graphic target when it reaches the end of a page. Since a graphic target operates on a full page basis, the default is to ignore text which is printed past the end of the page.

When ScrollText Mode is enabled, scrolling of a page is triggered only by GRAPHIC PRINT. If the POS (last point referenced) is located on the bottom row of the graphic target, and a GRAPHIC PRINT statement moves the POS off of the page, the entire contents of the graphic target is scrolled one row, and a new blank row is opened at the bottom.

See also | GRAPHIC GET SCROLLTEXT, GRAPHIC SET AUTOSIZE, GRAPHIC SET VIRTUAL, GRAPHIC SET WORDWRAP, GRAPHIC SET WRAP