Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

A way to use InteractionMode without Ctrl, Alt and Shift keys

Hi again!

This time, my need is based on my previous experience with the older graph in Measurement Studio 6 (for VB). With the older graph, it was possible to set the graph in a specific "usage mode". I mean, it was possible to indicate to the graph that it was in "zoom" mode, or "pan" mode and when the user was using the mouse, the graph was reacting appropriatly.

The new graph (or scatterGraph) racts differently. If the user wants to zoom, he/she has to hold a key. To pan, he/she also has to hold another key. Well... with a touchscreen, it's far from being easy to perform !!! I tried to set the InteractionMode to only one item or two (Zoom X, Zoom Y) but the user still has to use the Shift key to zoom.

Why did you changed this? Is there a way to "simulate" the Shift key (or Ctrl) so my application could work without using the keyboard? If not, could there be some boolean properties that would simulate them? Or event better, an enumation based property.

Ex.:

private void SetGraphToZoomMode()
{
this.graph.InteractionModifier = ShiftKey;
this.graph.InteractionMode = InteractionMode.ZoomX | InteractionMode.ZoomY;
}

This would work well with a touchscreen. All I'd have to do is to use a toolbar (which I already have anyway) to set the "usage mode" of the graph. Something like the thing that is already available in LabVIEW, you know? 😉

Thank you for your support. It is appreciated!
Léo
0 Kudos
Message 1 of 3
(3,337 Views)
Check out this post for info on how to set this up.
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,332 Views)
"Why did you change this?"

The motivation for the change was so that you can have single, multiple, or all interactions enabled at the same time, rather than only being able to have one interaction or preset combinations of interactions enabled at a time. Having said that, though, we have seen this request from other developers and we have filed a report to consider ways to easily provide the best of both approaches in a future release.

- Elton
0 Kudos
Message 3 of 3
(3,314 Views)