From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Limit Pan Area

I want to limit the pan area in a waveform graph such that the pan remains in the rectangle (x,y,width,height). How can I do that?
Currently I'm using the pan event to check the boundaries after the pan. If these are exceeded, I automatically pan to the boundaries. But is there a better method?

greetz,
piscator
0 Kudos
Message 1 of 3
(3,122 Views)

Hello,

I think this is actually the best option you have to do it. It is the most effective one when it comes to performance due to the event handling you are using (no polling).

Regards,

RikP - National Instruments Applications Engineering

 

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 2 of 3
(3,091 Views)
Thanks, RikP. I was hoping that something more was possible, but at least now I know i didn't miss something obvious.

greetz,
Piscator

0 Kudos
Message 3 of 3
(3,068 Views)