Pan on Drag and Zoom on Wheel Windows in Ignition vision client

Is there feature for zoom in and out a window in Ignition vision client?

Not that I'm aware of, but I've considered attempting to build one.

The way I see it is if the window were templetized, it could be rendered by a template canvas, and I imagine a mouse wheel listener could be programmed to adjust the coordinate and dimensional parameters of the canvas's parameters dataset to create a zoom effect.

For panning, a mouseDragged event could simply move the viewport's view position within canvas's scroll pane.

I've done this, as a 3rd-party component, as a proof of concept. There is a huge barrier in execution due to the designer tree using some component interfaces that should be only runtime. I've detailed a solution to IA, but it hasn't been a priority for them.

I've also done this. Works pretty well. You do have to make sure the templates don't consume the scroll wheel events.

A glass pane could simplify this. The overlay could intercept the event and logically decide whether to trigger the zoom or dispatch the event to the underlying components. I imagine this would be handy if the template contained nested components with scroll panes. In this way, the user could control the inner components normally and simply hold a command key pressed to enable the zoom function as needed.

1 Like