Recommended Posts

Posted

I am looking to create a graph in a runtime that restricts the user completely from changing any of its settings via a mouse click. Any help would be great. Thanks again

Posted

Well, you can't keep the zoom and right click from appearing, but you can keep them from changing the scale and stuff by creating a little sequence that runs in the background and every 0.2 seconds or so, thaws the graph. For example, if the graph is named MyGraph:

while(1)
   component.mygraph.XAxisFrozen = 0
   component.mygraph.YAxisFrozen = 0
   delay(0.2)
endwhile

Set the priority of this sequence to 0. Any zoom will reset itself back to the Set From/Set To parameters in the graph every 0.2 seconds.

Archived

This topic is now archived and is closed to further replies.