C1.Win.FlexGrid Namespace / C1FlexGrid Class / OnChangeScrollBarPosition Method
Scroll command (SB_LINEUP, etc).
True for the vertical scrollbar, false for the horizontal scrollbar.
Current scrollbar position.
Scrollbar thumb position.

In This Topic
OnChangeScrollBarPosition Method (C1FlexGrid)
In This Topic
Calculates the new position of a scrollbar in response to a user command.
Syntax
'Declaration
 
Protected Overridable Function OnChangeScrollBarPosition( _
   ByVal cmd As Integer, _
   ByVal verticalBar As Boolean, _
   ByVal curPos As Integer, _
   ByVal trackPos As Integer _
) As Integer
 

Parameters

cmd
Scroll command (SB_LINEUP, etc).
verticalBar
True for the vertical scrollbar, false for the horizontal scrollbar.
curPos
Current scrollbar position.
trackPos
Scrollbar thumb position.

Return Value

The new position for the scrollbar.
Remarks
Derived classes may override this method to customize the scrolling behavior.
See Also