06-30-2010 07:27 PM
I don't know how to display a current graph point coordinate (x,y) when left mouse down in the CWGraph control. Please help. Very appreciation.
07-01-2010 02:52 PM
Hi milu,
Thanks for posting on the NI Discussion Forums! There is an example that demonstrates how to set and get the position fo a graph cursor with the Measurement Studio installation. You can find this at C:\Documents and Settings\All Users\Documents\National Instruments\MStudioVSxxxx\VCNET\Examples\UI\Graph\Cursors.
The following thread also deals with using cursors and the CWGraph Control. Let me know if this helps!
07-07-2010 01:26 AM
Hi,Swathi B,
It works very well now. I really appreciate your help. Now I have an another question. I only know to create CWGraph control in dialog base application, but how to create It in document base application? I tried to use Create function, but not worked. Thanks.
Min
07-07-2010 05:04 PM
Hi Mliu,
Glad to hear that the examples helped! As for your next question, I'm not sure I fully understand what you are seeing. Could you help clarify what you mean by dialog and document based applications as well as provide additional details on any errors you observing. Thanks!
07-07-2010 07:31 PM
Hi, Swathi B,
When I create my project by using Ni Measurement Studio Appwizard, there is an option to choose : single document application or dialog base application. If I choose dialog(that is my usually doing), there is a dialog form to appear after seting up project done, so I can drag CWGraph control in the toolbar to the dialog form, then set all property I need, that is all I need to do for create a CWGraph. But If I choose single document application style, there is no form and control toolbar to appear. I think I need to program to create CWGraph, so I try to use Create function to create this control, after run, nothing on the window. First parameter of Create function is lpszClassName, I have no idea about what is the CNiGraph's class name. Proably there is another way to create CWGraph control , but I don't know. I hope I describe my question clearly. if so, please give me help. Thank you very much.
Min
07-08-2010 06:26 PM
Hi Min,
Take a look at the following tutorial. This should be a great resource on how to create a Single Document Interface, add the appropriate Measurement Studio class libraries, and drag the necessary controls onto the dialog resource.
Document/View Architecture in Visual C++ Test and Measurement Applications
07-14-2010 12:33 AM
Hi, Swathi B,
I got everything done now , thank you for really helpful reference. Very appreciate.
Min