ScrollHorizontal event
Description
Occurs when user scrolls left or right in the DataWindow with
the tab or arrow keys or the scroll bar.
PowerBuilder event information
Event ID: pbm_dwnhscroll
Argument |
Description |
---|---|
scrollpos |
Long by value. The distance in PowerBuilder |
pane |
Integer by value. The number of the pane
|
Web ActiveX event information
Event name: onScrollHorizontal
Argument |
Description |
---|---|
Position |
Number. The distance in PowerBuilder |
Pane |
Number. The number of the pane being
|
Return Values
There are no special outcomes for this event. The only code
is:
-
0 Continue processing
Examples
This example displays the customer ID of the current
row (the cust_id column) in a SingleLineEdit control when
the pane being scrolled is pane 1 and the position is greater than
100:
1 |
string ls_id |
1 |
ls_id = "" |
1 |
IF pane = 1 THEN |
1 |
   IF scrollpos > 100 THEN |
1 |
ls_id = String(dw_1.Object.Id[dw_1.GetRow()]) |
1 |
END If |
1 |
END IF |
1 |
sle_message.Text = ls_id |
1 |
RETURN 0 |