ChartDirector 7.1 (C++ Edition)

CViewPortControl


CViewPortControl is a MFC control that inherits from MFC CStatic and from ViewPortControlBase. It is used in MFC applications for displaying charts images and to handle mouse interactions.

MethodInheritedDescription
setChart(Self)Sets a BaseChart object for displaying in the control. The chart usually is an overall chart that includes the full data range.
getChart(Self)Gets the BaseChart object provided by the previous CViewPortControl.setChart method call.
setViewer(Self)Associates a CChartViewer object with this CViewPortControl object.
getViewer(Self)Gets the CChartViewer object provided by the previous CViewPortControl.setViewer method call.
updateDisplay(Self)Updates the display.
setViewPortManagerViewPortControlBaseSets the ViewPortManager object to be associated with the viewport control.
handleMouseDownViewPortControlBaseHandles the mouse down.
handleMouseUpViewPortControlBaseHandles the mouse up.
handleMouseMoveViewPortControlBaseHandles the mouse move.
paintViewPortViewPortControlBaseUpdates the viewport rectangle on the chart to reflect the state of the viewport.
isOnPlotAreaViewPortControlBaseDetermines if a point is on the plot area.
setDragInsideToMoveViewPortControlBaseEnables or disables dragging inside the viewport to move it.
getDragInsideToMoveViewPortControlBaseChecks if dragging inside the viewport to move it is enabled or disabled.
setDragBorderToResizeViewPortControlBaseEnables or disables dragging the viewport border to resize it.
getDragBorderToResizeViewPortControlBaseChecks if dragging the viewport border to resize it is enabled or disabled.
setDragOutsideToSelectViewPortControlBaseEnables or disables dragging outside the viewport to select a new viewport.
getDragOutsideToSelectViewPortControlBaseChecks if dragging outside the viewport to select a new viewport is enabled or disabled.
setClickToCenterViewPortControlBaseEnables or disables centering the viewport at the clicked point.
getClickToCenterViewPortControlBaseChecks if centering the viewport at the clicked point is enabled or disabled.
setMouseMarginViewPortControlBaseSets the margin around the viewport border for mouse drag.
setViewPortExternalColorViewPortControlBaseSets the fill color for the region outside the viewport.
getViewPortExternalColorViewPortControlBaseGets the fill color for the region outside the viewport.
setViewPortFillColorViewPortControlBaseSets the fill color for the region inside the viewport.
getViewPortFillColorViewPortControlBaseGets the fill color for the region inside the viewport.
setViewPortBorderColorViewPortControlBaseSets the viewport border color.
getViewPortBorderColorViewPortControlBaseGets the viewport border color.
setViewPortBorderWidthViewPortControlBaseSets the viewport border width.
getViewPortBorderWidthViewPortControlBaseGets the viewport border width.
setSelectionBorderColorViewPortControlBaseSets the border color of the selection box.
getSelectionBorderColorViewPortControlBaseGets the border color of the selection box.
setSelectionBorderWidthViewPortControlBaseSets the border width of the selection box.
getSelectionBorderWidthViewPortControlBaseGets the border width of the selection box.
getCursorViewPortControlBaseGets the mouse cursor to be used for user feedback.
setZoomScrollDirectionViewPortControlBaseSets the directions in which zooming and scrolling are allowed.
needUpdateDisplayViewPortControlBaseChecks if need to update the viewport control screen display.
needUpdateChartViewPortControlBaseChecks if need to update the chart in a viewport changed event.
needUpdateImageMapViewPortControlBaseChecks if need to update the image map in a viewport changed event.
Note: Methods inherited from CStatic are omitted.