ChartDirector 7.1 (C++ Edition)

ViewPortControlBase.setZoomScrollDirection


Usage

void setZoomScrollDirection(int zoomDirection, int scrollDirection);

Description

Sets the directions in which zooming and scrolling are allowed.

The viewport control uses this information to determine which type of dragging is allowed.

Arguments

ArgumentDefaultDescription
zoomDirection(Mandatory)The allowable zoom direction. Must be one of the predefined constants DirectionHorizontal, DirectionVertical and DirectionHorizontalVertical for horizontal, vertical and bi-directional zooming.
scrollDirection(Mandatory)The allowable scroll direction. Must be one of the predefined constants DirectionHorizontal, DirectionVertical and DirectionHorizontalVertical for horizontal, vertical and bi-directional scrolling.

Return Value

None