window_set_scroll_region_c
status.i4.v = window_set_scroll_region_c(window_id.i2.v, top_row.i4.v,
bottom_row.i4.v)
This routine allows the programmer to set the region inside the
window to be scrolled by future calls to 'window_scroll(_c)'. If
the newly defined scroll region overlaps a menu bar, the scroll
limits will not be changed.
window_id window ID (use WMNGR_BACKGROUND for background window)
top_row top row to be scrolled
bottom_row bottom row to be scrolled
This function returns ACNET status values as follows:
CBS_OK success
CBS_INVARG invalid window ID or row value was specified
CBS_NO_WINDOW requested window does not exist
CBS_MEMFAIL dynamic memory allocation failure
This function requires the following include files:
cbslib_h, acnet_errors.h
Related functions:
window_read_scroll_region_c, window_scroll(_c), window_scroll_page_c,
window_scroll_to_top_c, window_scroll_to_bottom_c, window_tvm(_c),
window_tvmx(_c), window_query_scroll(_c), window_total_lines_c,
intro_tv_windows
C usage:
short window_id;
int status;
int top_row = 2;
int bottom_row = 8;
status = window_set_scroll_region_c(window_id,top_row,bottom_row);
Security, Privacy, Legal