[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.OnChangeScrollBarPosition

OnChangeScrollBarPosition Method

OnChangeScrollBarPosition(int, bool, int, int)

Calculates the new position of a scrollbar in response to a user command.

Declaration
protected override int OnChangeScrollBarPosition(int cmd, bool verticalBar, int curPos, int trackPos)
Parameters
Type Name Description
int cmd

Scroll command (SB_LINEUP, etc).

bool verticalBar

True for the vertical scrollbar, false for the horizontal scrollbar.

int curPos

Current scrollbar position.

int trackPos

Scrollbar thumb position.

Returns
Type Description
int

The new position for the scrollbar.

Overrides
Remarks

Derived classes may override this method to customize the scrolling behavior.