GetGraphPoints::OnDisplay

Description

This event method is called when a point is selected whether or not it was actually being picked. It may actually be called multiple times when the point is selected. Derived classes can implement their own functionality for this event method. It can be used for supplemental display of information related to the point including customizing output to the Data Display window.

Note: When overriding in a derived class, it is not necessary to prepend the declaration with the virtual keyword.

Syntax

virtual void OnDisplay(string& str, int nPoint)

Parameters

str
[modify] String reference that can optionally be modified to add information to the output in the Data Display window.
nPoint
[input] Zero-based count of picked points thus far (not including the selection that triggered this event method).

Return

Examples

For an example of using this event method, please see the Example Section in GetGraphPoints.

Remark

See Also

header to Include

origin.h