Search
FlowChart.Scroll Event
See Also
 



Raised when a user scrolls the document area.

 Syntax

VB6  Copy Code

Public Event Scroll

 Event Data

Parameter

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

 Remarks

Raised 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.

 Example

The 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)

    specialBox.MoveTo(x + 20, y + 20)

End Sub

 See Also