LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a rectangle in a XY graph & this rectangle can be Drag and Zomm by Mouse

I have a curve display in a XY graph, that is simple.

But

   My customer want one or tree rectangle display in this graph also, these rectangle can be drag, Zoom,  such as below pic,

the problem is how to use mouse control these Rect, Drag to move, Drag corner to Zoom.  thanks a lot

 XY-GraphWithRect.JPG

 

 

0 Kudos
Message 1 of 2
(2,352 Views)

Hi,

 

First learn how to plot your rectangles (several segments).

Then use a structure event with XYGraph => mouse down to check when user begin the drag

Use the same structure event with XYGraph => mouse move to update your graph during movement.

 

Best Regards

V-F
0 Kudos
Message 2 of 2
(2,244 Views)