Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

Undo Zooming on a Measurement Studio Graph in Microsoft Visual Studio 6.0

Primary Software: Measurement Studio>>Professional Edition (Base Package)
Primary Software Version: 6.0
Primary Software Fixed Version: 7.0
Secondary Software: N/A

Problem: How do I undo zooming on my Measurement Studio graph in Microsoft Visual Studio 6.0?

Solution: The Undo modes are only available in Measurement Studio 7.x and later. If you are using one of these versions or a later version, refer to KnowledgeBase 3K79711J: How to Undo After Zooming with Measurements Studio’s CWGraph.

However, if you have Measurement Studio 6.0 you can upgrade to the current version of all Measurement Studio controls and libraries for Visual Studio 6.0. Refer to Drivers and Updates: Measurement Studio Version 6.0 for Windows--Update for Visual Basic 6.0 and Visual C++ 6.0 (patch) on the NI Web site to access the free patch.

Using Direct Numbers

The file Mstudio80NewFeaturesforVS60.html has a section labeled Using the New Features in Visual C++ 6.0. This section contains information on using direct numbers instead of the constants and gives the CWGraphTrackModes Enumeration Value Integer Translations.

For instance, instead of using the constant, ZoomRect XYWithUndo, you type cast the numeric value, 10.

Instead of using this code:
    m_graph.TrackMode = CNiGraph::ZoomRectXYWithUndo;
you use the following code:
    m_graph.TrackMode = (CNiGraph::GraphTrackModes)10;


Related Links:
Drivers and Updates: Measurement Studio Version 6.0 for Windows--Update for Visual Basic 6.0 and Visual C++ 6.0 (patch)
KnowledgeBase 3K79711J: How to Undo After Zooming with Measurements Studio’s CWGraph


Attachments:





Report Date: 04/26/2005
Last Updated: 08/08/2006
Document ID: 3KPE1O4Y

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit