Table of Contents

This is part of Family API which allow to create dual-os version of program runs under OS/2 and DOS

Note: This is legacy API call. It is recommended to use 32-bit equivalent

2021/09/17 04:47 · prokushev · 0 Comments
2021/08/20 03:18 · prokushev · 0 Comments

VioScrollUp

This call scrolls the entire display buffer (or area specified within the display buffer) up.

Syntax

VioScrollUp (TopRow, LeftCol, BotRow, RightCol, Lines, Cell, VioHandle)

Parameters

Return Code

rc (USHORT) - return

Return code descriptions are:

Remarks

TopRow = 0 and LeftCol = 0 identifies the top left corner of the screen.

If a value greater than the maximum value is specified for TopRow, LeftCol, BotRow, RightCol, or Lines, the maximum value for that parameter is used.

If TopRow and LeftCol = 0 and if BotRow, RightCol, and Lines = 65535 (or -1 in assembler language), the entire screen is filled with the character-attribute pair defined by Cell.

Bindings

C

#define INCL_VIO
 
USHORT  rc = VioScrollUp(TopRow, LeftCol, BotRow, RightCol, Lines, Cell,
                             VioHandle);
 
USHORT  TopRow;        /* Top row */
USHORT  LeftCol;       /* Left column */
USHORT  BotRow;        /* Bottom row */
USHORT  RightCol;      /* Right column */
USHORT  Lines;         /* Number of lines */
PBYTE   Cell;          /* Fill character */
HVIO    VioHandle;     /* Video handle */
 
USHORT  rc;            /* return code */

MASM

EXTRN  VioScrollUp:FAR
INCL_VIO            EQU 1
 
PUSH   WORD    TopRow        ;Top row
PUSH   WORD    LeftCol       ;Left column
PUSH   WORD    BotRow        ;Bottom row
PUSH   WORD    RightCol      ;Right column
PUSH   WORD    Lines         ;Number of lines
PUSH@  OTHER   Cell          ;Fill character
PUSH   WORD    VioHandle     ;Video handle
CALL   VioScrollUp
 
Returns WORD

*VioScrollDn