You can use annotations to introduce the functionality that you desire. The CNiAnnotation encapsulates the interface to a single annotation on a graph control, which allows you to modify the annotation?s appearance (such as the caption). To add a new annotation associated to your graph you can use
graph.Annotations.Add();
After adding an annotation to a graph you can change each of its data items such as caption, visibility, etc.
You can look at the example program that is included with Measurement Studio. It should be located on your Measurement Studio folder under VC\Examples\Ui\Graph\Annotations. In addition, you can check out the documentation for the CNiAnnotation object on the Measurement Studio Reference help file.
Best regards,
Diego F.
Appli
cations Engineer
National Instruments
www.ni.com/ask