LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

为什么我不能缩放和平移?(Why I cann't zooming and panning on Graphs?)

Solved!
Go to solution
 
这里明确说/ Here explicitly say:
If you set Zoom Style to Zoom to Rectangle in the Edit Graph dialog box or set the ATTR_ZOOM_STYLE control attribute to VAL_ZOOM_TO_RECT, users can define a rectangular zone that will become the new limits of the graph. To select these bounds, press <Ctrl> and click and hold the left mouse button to define the first corner of the box. Drag the mouse to define the opposite corner of the rectangle. When you are satisfied with the new boundaries of the graph, release the mouse button.
 
So, I need only setup to Zoom to Rectangle , don't need write  any programming code , really ? This is great function .
But I cann't still zooming and panning . Why ?
按说只要设置一下即可,是吗?很诱人的功能,可我的为何不行呢?
 
Thank you。 谢谢。
0 Kudos
Message 1 of 3
(4,525 Views)
Solution
Accepted by topic author cnchip

You may have missed the detail, noted in the document, that the graph control need not to be in indicator mode: set it as normal or hot for it to honour mouse/keyboard events and satisfy zooming requests.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(4,523 Views)

Thank you very much !

I have done follow your instruct .Now is ok.

Thank you again. Exhilarating...Smiley Very Happy

 

0 Kudos
Message 3 of 3
(4,517 Views)