ScrollVertical event
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 |
Web ActiveX event information
Event name: onScrollVertical
|
Argument |
Description |
|---|---|
|
Position |
Number. The distance in PowerBuilder |
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:
|
1 |
long ll_numrows |
|
1 |
string ls_firstrow, ls_lastrow |
|
1 |
|
1 |
ll_numrows = dw_1.RowCount() |
|
1 |
ls_firstrow = dw_1.Object.Datawindow.FirstRowOnPage |
|
1 |
ls_lastrow = dw_1.Object.Datawindow.LastRowOnPage |
|
1 |
|
1 |
sle_message.Text = "Rows " + ls_firstrow & |
|
1 |
+ " through " + ls_lastrow + " of " & |
|
1 |
+ String(ll_numrows) |
|
1 |
|
1 |
RETURN 0 |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest