IMDTouchKnowledge BaseShop main store

Explainer

Why clearing Zoom allow does not stop WinCC Unified panning

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

In WinCC Unified PC Runtime V20, a screen that does not fit its screen window always stays pannable, and the Zoom - allow property controls only Unified's own zoom. Clearing it at design time or from the screen's load event leaves the geometry untouched, so a script-cropped window cannot hide privileged settings. Keep each restricted screen small enough to fit and load privileged settings only after the privilege check passes.

On this page
  1. What the zoom property really controls
  2. Why oversized content keeps panning
  3. Visibility is not authorization
  4. Telling pan, Unified zoom and browser zoom apart
  5. Geometry check: a 1200 x 800 screen inside a 900 x 600 window
  6. Redesigning the privilege boundary
  7. Commissioning and verifying the split
  8. Questions asked

Unchecking the zoom property does not stop the dragging because the dragging is panning, and no zoom property governs it. In WinCC Unified PC Runtime V20, a screen that does not fit inside its screen window can always be dragged until its hidden parts come into view, and no object property switches that movement off. The property you cleared, "Zoom - allow" under "Properties > Format", gates only Unified's own zoom function, so clearing it at design time and again from the screen's load event changes permissions, not geometry. A window cropped by script is therefore not an authorization boundary. The decision is to keep every restricted screen small enough to fit its window with no overflow, and to put privileged settings on a separate screen that loads only after the privilege check passes.

What the zoom property really controls #

"Zoom - allow" sits under "Properties > Format" in the screen window's Inspector and is enabled by default in the engineering system. It gates one function: Unified's own zooming of screen content, driven by mouse wheel, pinch gestures or keyboard depending on the device. It does not gate dragging of oversized content, and it does not gate zoom supplied by the browser environment around the runtime; those are separate input paths.

A central runtime setting for zooming and panning exists as well. It decides which zoom policy applies across the runtime, either forcing one policy everywhere or handing control back to each object's own property. It still only tunes zooming: nothing in it makes an oversized screen fit, and fitting is the only condition that removes the drag.

The load-event assignment already tried, Screen management/Main screen windows/Format/Zoom - allow, writes the same permission at runtime. It does what it says; what it says was never the problem.

Why oversized content keeps panning #

A screen window presents another screen through a bounded rectangle. When the loaded screen is larger than that rectangle, the runtime must give the operator a way to reach the rest of it, and in V20 that way is dragging. The overflow itself enables the movement: it is geometric behavior, not a permission that can be revoked, so no checkbox removes it while the screen stays larger than the window.

Resizing the window does not change this unless the screen then fits completely. A window enlarged or shrunk by script still shows the same loaded screen; whatever lies outside the current view remains one drag away. That is why a combined panel with settings on its right-hand side cannot be secured by making the window narrow.

Visibility is not authorization #

The layout at issue puts monitoring values on the left, a button at the bottom and settings on the right. A script shrinks the window so only the monitoring shows, and after a privilege check the button enlarges it again to expose the adjustment controls. The failure is immediate: an operator without the privilege drags the content sideways and reaches the settings before any check runs.

Visibility decides what is currently drawn. Authorization decides what may be navigated to, shown or operated. On a pannable screen every object on that screen is reachable, so visibility carries no access-control weight there. Zoom and pan are navigation aids in every SCADA package, and a guide to SCADA zoom, panning and decluttering features covers their intended role; none of them is a protection mechanism.

Telling pan, Unified zoom and browser zoom apart #

Three independent input paths are in play, and each is tested on its own with mouse, keyboard and touch where present:

Observation in runtime Function Effect of clearing "Zoom - allow"
Content drags within a smaller window Panning None while the screen exceeds the window
Unified rescales its content on wheel, pinch or keys Unified zoom Blocks it
The whole page rescales outside Unified's controls Browser zoom None; the property does not reach it

A blocked Unified zoom proves nothing about dragging, and suppressing browser zoom would not make an oversized screen a valid privilege boundary either.

Geometry check: a 1200 x 800 screen inside a 900 x 600 window #

Inputs, with example dimensions for the layout above: the combined screen is designed at 1200 x 800 px, with the settings column on its right-hand part, and the script shrinks the window to 900 x 600 px in the restricted state. Only the layout itself is fixed; the two sizes are illustrative, so substitute your own design values. The rule: the draggable region is the loaded screen minus the viewport; anything positioned in that difference is reachable with no privilege at all, and clearing the zoom property subtracts nothing from it.

The arithmetic:

  • Hidden width: 1200 px - 900 px = 300 px
  • Hidden height: 800 px - 600 px = 200 px
  • Reachable by dragging with "Zoom - allow" cleared: the same 300 px x 200 px

Result: the settings column sits in the hidden right-hand strip, and one horizontal drag brings it into view whether the property is cleared or not.

Decision: count the privileged objects inside the hidden region. The limit is zero. Above zero, split the layout: rebuild the restricted screen so it is no larger than its window on both axes, and move every privileged object to the separate settings screen. At zero, with both axes fitting, panning has nothing left to reveal and the design passes.

Redesigning the privilege boundary #

Build the restricted screen from monitoring values and permitted navigation only, sized to the window it will occupy with zero overflow on either axis. Put the settings on their own screen, or in a screen window that is not loaded until the operator is authorized; screen windows remain the right container for that split, which is the same reason why screen windows replace template screens in Unified projects.

Guard two layers with the same privilege decision:

  1. Navigation: the control that opens the settings screen refuses to execute without the privilege, so a failed check leaves the restricted view loaded.
  2. Operation: each protected write, command and adjustment refuses on its own when the privilege is absent, because a display state or script can misbehave even when navigation is guarded.

The privileges are function rights assigned in the engineering system, covered in configuring WinCC Unified user administration and function rights. If the enlarged combined layout is convenient after login, load that layout only for the authorized state. Never park privileged objects past the edge of a narrower window, and never rely on an overlay drawn above active protected objects; movement, layering or an alternate path defeats a purely visual cover.

Commissioning and verifying the split #

  1. Rebuild the restricted screen with unrestricted objects only and make it no larger than its window on both axes.
  2. Move the settings to the privileged screen and point the opening control's screen change at it.
  3. Assign the required privilege to that control and to every protected operation.
  4. Leave "Zoom - allow" cleared if Unified zoom is unwanted at all; count it as a usability setting, never as the fix.
  5. Run the drag tests on the bench or with the machine in a safe state, because the test deliberately reaches controls that should not be reachable.
  6. Log in without the privilege and try every path: drag in all directions with mouse and touch, zoom with wheel, pinch and keyboard, and zoom the browser. Expect no privileged object anywhere in the reachable content, no loading of the settings screen, and a refusal from every protected operation.
  7. On logout or privilege change, close or unload the settings screen and restore the restricted one. Do not shrink a combined window back down; shrinking recreates the oversized, draggable condition.

Questions asked

Why does a zoom-factor popup still appear after clearing Zoom - allow?

That popup belongs to the browser, not to Unified. Most browsers display the current zoom factor in a notice while zooming, which is a reliable way to tell browser zoom from Unified zoom. Clearing the property leaves browser zoom untouched, and suppressing it would not help anyway: the exposure comes from dragging an oversized screen, and no zoom setting touches that movement.

Does the central runtime setting for zooming and panning stop the dragging?

That central setting offers the values "Custom", "Enabled" and "Disabled". With "Custom", each screen window's own "Zoom - allow" property applies in runtime; with "Enabled" or "Disabled", one zoom policy applies regardless of object settings. Every value leaves a screen that exceeds its window draggable, because the setting tunes zooming and never changes geometry. Use it for zoom policy, not for access protection.

How can an operator resize a screen window at runtime?

Activate "Show border" and "Can be sized" for the screen window in its Inspector properties, and the window can then be resized in runtime. A resizing script changes the same geometry by other means. Either way, only a window that fully contains its loaded screen removes the drag; a resize that leaves overflow leaves panning in place.

Where does the privilege for opening the settings screen get attached?

Attach it to the control that triggers the screen change. The engineering system lets you bind the required privilege to a screen-change system function on a button, and the documented access-protection example does exactly that. Without the privilege the function is refused and the current view stays. Add the same privilege to every protected write and command as well, because guarding navigation alone leaves operations open through other paths.

Keep reading

  • How-to

    Change the HMI screen from the PLC in WinCC Unified

    In WinCC Unified the Job Mailbox is gone. Give each target screen a screen number, link an HMI tag to the PLC integer command tag, and call ChangeScreenWithNumber from a value-change event on an object in a persistent base screen. Never call the UI system functions from a scheduled task or global module — those scopes have no UI context and raise "UI not supported in current scope".

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Unified PC Runtime shows a red topology line

    WinCC Unified PC Runtime communicates over IP only and does not take part in LLDP topology discovery, so a red line and an IRT port diagnostic describe an unvalidated drawing, not a broken HMI connection. Delete the PC Runtime port interconnection, keep the IP network, and verify the Runtime PC path separately.

    HMI and touchscreens

  • Troubleshooting

    Why a WebIQ Project Link Loads on the PC but Not the HMI Screen

    No universal WebIQ link exists: a browser HMI loads only when the screen has a routed path to the WebIQ server, at http[s]://{SERVER HOSTNAME OR IP}:{LISTENER PORT}/{FOLDER NAME OF PROJECT}/. When the link works on the PC but not the screen, fix the address, subnet, listener binding or routing — in that order.

    HMI and touchscreens