Scrolling actions can be associated with commands in any dialect. The scrolling actions are processed consistently regardless of the dialect of the command entered.
NEXT, PREV, TOP, and BOTTOM are English commands associated with scrolling actions. Scrolling commands in another dialect can be used in place of the English commands. The CA Gen software associates the non-English commands with the appropriate scroll actions. The entered command is checked against the defined scroll actions. If the command represents a defined scroll action, the action is performed and the command is replaced by a common command for the scroll action.
The procedure step of the user requires one Case of Command statement containing cases for each of the common scroll commands. It is not necessary to add individual case statements for each command in each dialect.
Data scrolls forward or backward based on the total number of lines in the viewport.
The following table defines the common scroll action commands.
|
Common Command |
Scroll Action |
Description |
|---|---|---|
|
NEXT |
Scroll to next unit |
NEXT increments the viewport origin to the next entry that corresponds with the scroll amount. |
|
PREV |
Scroll to previous unit |
PREV decrements the viewport origin to the previous entry that corresponds with the scroll amount. |
|
TOP |
Scroll to the first entry |
TOP sets the viewport origin coincident with the first row of the data view. |
|
BOTTOM |
Scroll to the last viewport |
BOTTOM sets the viewport origin to the row in the data view which, when mapped into the viewport, causes the last row of data to be coincident with the last row of the viewport. |
|
LOCATE |
Scroll to the indicated row |
LOCATE sets the viewport origin to the row of the data view indicated by the locate amount. |
NEXT is substituted when a scroll action indicates a sequentially forward movement by some scroll amount. PREV is substituted when a scroll action indicates a sequentially backward movement by some scroll amount.
TOP, BOTTOM, and LOCATE are substituted regardless of the scroll amount, and based solely on the scroll action entered.
|
Copyright © 2013 CA.
All rights reserved.
|
|