ScrollVertical

Description

Occurs when user scrolls up or down in the DataWindow with the Tab or arrow keys or the scroll bar.

PowerBuilder event information

Event ID: pbm_dwnvscroll

Argument

Description

scrollpos

Long by value. The distance in PowerBuilder units of the scroll box from the top of the scroll bar.


Return Values

There are no special outcomes for this event. The only code is:

0 -- Continue processing

Examples

As the user scrolls vertically, this script displays the range of rows currently being displayed in the DataWindow:

long ll_numrows
string ls_firstrow, ls_lastrow
 
ll_numrows = dw_1.RowCount()
ls_firstrow = dw_1.Object.Datawindow.FirstRowOnPage
ls_lastrow = dw_1.Object.Datawindow.LastRowOnPage
 
sle_message.Text = "Rows " + ls_firstrow &
      + " through " + ls_lastrow + " of " &
      + String(ll_numrows)
 
RETURN 0

See also

ScrollHorizontal