Updating a Scrollable Region

You can update a scrollable region by calling the scrollable region update function,sr_upd():

void sr_upd(first_visrow, srp)
 
int first_visrow;
/* Data row to make first visible row
*/
SRPTR dfmp;
/* Scrollable region to update
*/

Before calling this function, the data form with the specified scrollable region must be displayed on the screen or the form must be ready.

sr_upd() redisplays the prompt text and refreshes the values displayed in the fields on a scrollable region to the current values of the data variable. sr_upd() will scroll the data rows, if necessary, to make the specified row the first visible row in the scrollable region. All visible fields are displayed in their inactive attribute.

Caution: The data in any rows that are scrolled off the region are not converted and stored. Call sr_convert() before sr_upd() to avoid this.


Home Contents Previous Next