ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid.Util.BaseControls Namespace / ScrollableControl 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 (ScrollableControl)
    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
    protected virtual int OnChangeScrollBarPosition( 
       int cmd,
       bool verticalBar,
       int curPos,
       int trackPos
    )

    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