Platforms to show: All Mac Windows Linux Cross-Platform

CDViewPortControlBaseMBS.Constructor
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: The constructor.

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.getProperty(attr as integer) as integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Queries a property by ID.

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.handleMouseDown(x as double, y as double)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Handles the mouse down.
Notes:
ArgumentDefaultDescription
x(Mandatory)The x pixel coordinate of the mouse.
y(Mandatory)The y pixel coordinate of the mouse.

Some examples using this method:

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.handleMouseMove(x as double, y as double, isDragging as boolean)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Handles the mouse move.
Notes:
ArgumentDefaultDescription
x(Mandatory)The x pixel coordinate of the mouse.
y(Mandatory)The y pixel coordinate of the mouse.

Some examples using this method:

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.handleMouseUp(x as double, y as double)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Handles the mouse up.
Notes:
ArgumentDefaultDescription
x(Mandatory)The x pixel coordinate of the mouse.
y(Mandatory)The y pixel coordinate of the mouse.

Some examples using this method:

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.isOnPlotArea(x as double, y as double) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Determines if a point is on the plot area.
Notes:
ArgumentDefaultDescription
x(Mandatory)The x pixel coordinate of the point.
y(Mandatory)The y pixel coordinate of the point.

Some examples using this method:

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.paintViewPort
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Updates the viewport rectangle on the chart to reflect the state of the viewport.

Some examples using this method:

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.setMouseMargin(mouseMargin as Integer, cornerMargin as Integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Sets the margin around the viewport border for mouse drag.
Notes:
The viewport border can be as thin as 1 pixel, and it is hard to position the mouse over the border to drag it. To make it easier to drag the border, dragging can start if the mouse is within a certain margin from the border.

If both vertical and horizontal zooming is allowed, the viewport corners can be dragged diagonally to resize the viewport in both directions at the same time. To distinguish between dragging the corners and the borders, if the mouse is within a certain margin from the corner when the dragging starts, it is considered to be dragging the corner.

In either case, the mouse cursor will change to let the user know if the border or corner can be dragged.

ArgumentDefaultDescription
mouseMargin(Mandatory)The margin around the viewport border within which dragging of the border can start. The margin is in pixel unit. The default is 4 pixels.
cornerMargin(Mandatory)The margin around the viewport corner within which dragging of the corner can start. The margin is in pixel unit. The default is 8 pixels.

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.setProperty(attr as integer, value as integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Sets a property by ID.

Feedback, Comments & Corrections

CDViewPortControlBaseMBS.setZoomScrollDirection(zoomDirection as integer, scrollDirection as integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Sets the directions in which zooming and scrolling are allowed.
Notes:
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 kDirectionHorizontal, kDirectionVertical and kDirectionHorizontalVertical for horizontal, vertical and bi-directional zooming.
scrollDirection(Mandatory)The allowable scroll direction. Must be one of the predefined constants kDirectionHorizontal, kDirectionVertical and kDirectionHorizontalVertical for horizontal, vertical and bi-directional scrolling.

Some examples using this method:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS ChartDirector Plugin.

The biggest plugin in space...




Links
MBS Xojo blog

Start Chat