NOTE: This section describes Programmable Track Cursor for MFC only. For Qt, please refer to Programmable Track Cursor (Qt).
ChartDirector 7.1 (C++ Edition)
Programmable Track Cursor (MFC)
Introduction
MouseMovePlotArea Event
Dynamic Layer
Snapping to the Nearest X Data Position
Sample Track Cursors
Sample Code | Description |
---|---|
Track Line with Legend (MFC) | Demonstrates a track cursor that consists of a vertical line snapped to the nearest x data position. There are dots to highlight the nearest data points, and a dynamically updated legend showing their values. |
Track Line with Data Labels (MFC) | Demonstrates a track cursor that consists of a vertical line snapped to the nearest x data position with a floating x-axis label. There are also dots to highlight the nearest data points, with labels beside them displaying their values. |
Track Line with Axis Labels (MFC) | Demonstrates a track cursor that uses horizontal and vertical lines to connect the nearest data points to the x-axis and y-axis, with floating axis labels showing their values. |
Track Box with Floating Legend (MFC) | Demonstrates a track cursor that consists of a rectangle enclosing the slot corresponding to the nearest x-axis label. A floating legend box that moves with the mouse cursor is used to display the data values in that slot. |
Crosshair with Axis Labels (MFC) | Demonstrates a track cursor that consists of a vertical line and a horizontal line at the mouse cursor position, thereby forming a crosshair. Floating axis labels are used to display the cursor position. |
Finance Chart Track Line (MFC) | This is similar to Track Line with Legend (MFC), but is modified to apply to the FinanceChart object. |
Zooming and Scrolling with Track Line (1) (MFC) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Track Line with Legend (MFC). |
Zooming and Scrolling with Track Line (2) (MFC) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Track Line with Data Labels (MFC). |
Zooming and Scrolling with Viewport Control (MFC) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Track Line with Legend (MFC). |
XY Zooming and Scrolling (MFC) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Crosshair with Axis Labels (MFC). |
Real-Time Chart with Track Line (MFC) | Demonstrates how to apply track cursors to a Realtime chart. The track cursor drawing code is similar to that in Track Line with Legend (MFC). |
Real-Time Chart with Zooming and Scrolling (MFC) | Demonstrates how to apply track cursors to a Realtime chart. The track cursor drawing code is similar to that in Track Line with Data Labels (MFC). |