05-15-2006 10:31 AM
05-16-2006 10:06 AM
Hi antadam,
Currently that functionality isn't directly implemented into the CNiGraph graph object like the LabVIEW graph object. In this case you would need to write you own zooming code. For Visual C++ 6.0, there are several TrackModes associated with the CNiGraph graph class. Open the help for this topic by browsing to Start >> Programs >> National Instruments >> Measurement Studio >> Help >> Measurement Studio Reference and then searching for TrackModes under the Index tab. You will see there are several zoom options available. Also with the 7.1 version of this graph control, there is a zoom event that you can use that is fired as when CNiGraph is finished zooming. From that state you could get the maximum and minimum values for axes. If you need to update your control, see this link. You may also want to check out the Simple Graph and Axes examples located in the <MeasurementStudio>\VC\Examples\Ui\Graph folder.
If you would like to make a product suggestion about having this feature built in like LabVIEW, you can submit suggestions at this link. Once at this link, click the Product Feedback option.
Hope this helps
!