Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

draw rectangle in plot

How can i draw rectangle in graph
with Component works++?
0 Kudos
Message 1 of 2
(3,131 Views)
Annotations were introduced to the C++/ActiveX graph in Measurement Studio 6.0. This is the best way to draw a rectangle.

Details:
CNiAnnotation::Shape is a property of type CNiShape. CNiShape::Type is an enumeration, one value of which is CNiShape::Rectangle. Use CNiShape::XCoordinates and CNiShape::YCoordinates to specify the location and size of the rectangle. Use CNiAnnotation::CoordinateType to specify whether the coordinates of the rectangle are in axis units or in pixels relative to plot area or screen area.

If you cannot upgrade to Measurement Studio 6.0, you could consider using 2 cursors as a workaround.

David Rohacek
National Instruments
Message 2 of 2
(3,131 Views)