Changing the Window Adjust Quantity

The horizontal and vertical adjust quantities control how much the window scrolls when the user requests to move to a location that is not currently displayed. They are window-specific values. To set the adjust quantities for a window, use the set window adjust quantity function, sw_adjq():

void sw_adjq(horzq, vertq, wnp)
 
int horzq;
/* Horizontal adjust quantity
*/
int vertq;
/* Vertical adjust quantity
*/
WINDOWPTR wnp;
/* Window pointer
*/

If you make the following call:

sw_adjq(5, 5, wnp);

and the user presses the down arrow while on the last row of the memory file, the memory file will scroll up 5 rows.


Home Contents Previous Next