Raised when a user scrolls the document area.
SyntaxVB6
Copy Code
|
|---|
Public Event Scroll |
Event DataParameter | Type | Description |
|---|---|---|
x | [input] long | The x coordinate of the new scroll position. |
y | [input] long | The y coordinate of the new scroll position. |
Dispatch ID: 73
RemarksRaised when a user scrolls the document area. The x and y parameters provide the new values of ScrollX and ScrollY properties.
Scrolling can be performed interactively: through the scrollbars; by panning via ALT + dragging the mouse; via keyboard arrow keys. To enable scrolling through keyboard interface, set the KbdActive property to true and KbdBehavior to kbScrollView.
This event is not raised if the scroll position is changed programmatically.
ExampleThe sample below keeps a special node always into view by moving it when the diagram is scrolled.
VB6
Copy Code
|
|---|
Private Sub fc_Scroll(ByVal x As Long, ByVal y As Long) |
See Also