|
SmartViewport
Reference
Occurs after the viewport has scrolled in a determined direction.
Syntax
Private Sub object_AfterScroll (ByVal Direction As
Long, ByVal value As Long)
The AfterScroll event syntax has these parts:
| Part |
Description |
| object |
An object expression that evaluates to a SmartViewport object. |
| direction |
A Long that determines the scroll direction as described
in Settings. |
| value |
A Long that determines the amount of twips the object has
scrolled. |
Settings
The settings for direction are:
| Setting |
Description |
| 0 |
The viewport has scrolled vertically. |
| 1 |
The viewport has scrolled horizontally. |
Remarks
The AfterScroll event is fired just after the viewport has scrolled its
contained controls. You can get the total amount of scrolled distance by checking
properties OffsetX and OffsetY.
|