LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Graph as an Indicator or Control

 

Hi all

 

I have a simple question. How can i use the single GRAPH  as an Indicator type or a Control type by means of a boolean switch?

 

Such that

1) if i use it as an indicator then the Cursor automatically go to the calculated x and y coordinates
2) If i use it as a control then the cursor should go wherever i want to drag it.

 

 

Thanks

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

Basically the item si simple: use SetCtrlAttribute (panelHandle, controlID, ATTR_CTRL_MODE, VAL_INDICATOR) to turn the graph as indicator, use VAL_HOT to use it as a control.

If in indicator mode, you can set cursor position by menas of SetGraphCursor command.



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?
Message 2 of 2
(2,871 Views)