IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a WinCC picture window keeps objects at the old size

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

A runtime window shrunk from 1920 to 1280 wide resizes only the container; the PDL keeps its drawn size. Set Adapt Picture on the picture window that actually loads that PDL so the picture follows the container — Adapt Size does the opposite and lets the picture drive the window. If the working area still stops short of the screen, size the picture window to the display minus the reserved button strip.

On this page
  1. Adapt Picture and Adapt Size turn in opposite directions
  2. Why the working area stops short of the screen
  3. Worked example: shrinking a 1920-pixel design to 1280
  4. What the resolution setting does in RT Advanced and Unified
  5. Work through the checks in this order
  6. Questions asked

When you shrink a WinCC runtime window - say from 1920 to 1280 pixels wide - the window is only a container. The picture inside it keeps the size it was drawn at, which is why the graphics stay at the old scale while the frame gets smaller. The fix is directional. Select the picture window object that actually loads that PDL and set Adapt Picture, and the loaded picture follows the container. Adapt Size does the opposite - it resizes the window to the picture - so it cannot shrink anything. If the working area still stops short of the screen afterwards, what is left is geometry: some layer is still sized to the old rectangle, and no property will move it for you.

Adapt Picture and Adapt Size turn in opposite directions #

A picture window is a container object that displays another picture, and the PDL is the picture file it loads. Two properties on that container decide who follows whom. With Adapt Picture set, the loaded PDL adjusts itself to the size of the picture window: the container drives the picture. With Adapt Size set, the picture window resizes itself to the size of the loaded PDL: the picture drives the container.

That direction is the whole decision. To make graphics smaller when the window shrinks, the container must drive, so Adapt Picture goes on the picture window that loads the affected PDL. Set Adapt Size while shrinking and the full-width picture simply pushes the window back open, so nothing appears to change.

The property belongs to one container at a time. In a nested layout the runtime window, the main picture and each embedded picture window are separate objects, and Adapt Picture on the wrong container leaves the graphics you are looking at unchanged. Objects drawn directly in the surrounding picture are outside the reach of any picture window property.

Know one side effect before you switch it on: Adapt Picture scales the whole loaded picture, including content you did not mean to show. A documented PCS 7 OS case has simulation-only PH areas hidden because the Adapt Picture option was active; it is worked through in PCS 7 OS page on simulation PH areas hidden by the Adapt Picture option.

The same property decides whether screens migrated into WinCC 7.4 fit their new resolution; adapt picture in WinCC 7.4 so migrated screens fit the new resolution covers that migration case.

Why the working area stops short of the screen #

In the reported setup the runtime ran at 1920×1080 and the working picture was drawn 1920×847 because a button bar takes the top strip of the screen; 1080 - 847 = 233 pixels are reserved for it. When the working area still does not fill the space under that bar, one of the four boundaries below is not where you think it is. Walk them in order and measure each one.

  • The runtime window - sized by the configured runtime resolution, not by any picture.
  • The main picture - the PDL the runtime opens first; drawn smaller than the screen, it leaves the leftover strip empty no matter what any adaptation property says.
  • The picture window object - its position and size are set manually, and Adapt Picture never moves or enlarges it.
  • The loaded PDL - it follows the container only where Adapt Picture is set on that exact container.
Boundary What sets its size What closes a shortfall
Runtime window The configured runtime resolution Change the resolution; this alone rescales no object
Main picture The width and height it was drawn at Redraw it to the full display rectangle
Picture window object Its position and size settings Move and size it onto the free rectangle below the strip
Loaded PDL The size it was drawn at Set Adapt Picture on its container so it follows

Commit to this: Adapt Picture scales a picture inside its container. It does not resize or reposition the container and it does not change the main picture's canvas, so an unfilled working area is a geometry fix, not a property fix. Make the main picture the full display size, keep the button strip at its designed height, and set the picture window to the free 1920×847 rectangle below the strip. If the loaded PDL is smaller than that container, Adapt Picture then stretches it to fill.

Worked example: shrinking a 1920-pixel design to 1280 #

This is a geometry example, not a WinCC setting. Suppose the station moves from a 1920×1080 screen to a 1280×720 one. Both dimensions scale by 1280 / 1920 = 2/3 ≈ 0.667.

The working picture drawn at 1920×847 then displays at 1280 × (847 × 2/3 = 564.67), which rounds to 1280×565, provided its container is set to that size with Adapt Picture on. The strip that reserved 1080 - 847 = 233 design pixels occupies 233 × 2/3 = 155.33, call it 155 pixels, after the same shrink, and 565 + 155 = 720: the scaled layout still fills the smaller screen exactly.

The aspect check decides whether you may stretch instead. The working picture's ratio is 1920 / 847 = 2.27 while the screen's is 1.78. Stretch the picture over a full-screen container and height scales by 720 / 847 = 0.85 while width scales by 0.667, so circles become ellipses and text widens. Keep the container at the picture's own ratio and the proportions survive, even though the layout no longer fills the screen edge to edge; filling and proportion are separate decisions.

What the resolution setting does in RT Advanced and Unified #

In WinCC RT Advanced the runtime resolution is configured in the Runtime settings of the HMI device, as the TIA Portal documentation for changing the screen resolution describes. That setting re-cuts the canvas the pictures are drawn on; it does not rescale a single object, so the container-versus-picture rules above still decide whether graphics follow. When the trigger is a resolution change on a classic PC runtime, the walkthrough on configuring Adapt Picture for a WinCC runtime screen resolution change pairs the two settings step by step.

WinCC Unified calls the container a screen window, and its fitting entry lives at Properties > Format > Size - fit on that object. The TIA Portal documentation notes that with it the screen window and the screen retain their original size, so treat the entry as a fitting aid rather than a scaling function. Nothing resizes the loaded screen for you; sizing the container to the free rectangle stays your job in Unified too.

If the navigation strip is itself a picture window, every rule above applies to it as well, and the checks for keeping WinCC dual-monitor navigation inside picture windows are the same container checks.

Work through the checks in this order #

  1. Open the PDL whose objects kept their size and confirm which picture window actually loads it - in a nested layout, never assume it is the outermost container.
  2. Select that picture window object and set Adapt Picture; leave Adapt Size clear unless you want the window to follow the picture.
  3. Measure the container rectangle against the free area - display size minus the button strip - then move and resize the container onto that rectangle.
  4. Save every changed picture, restart the runtime and compare a known object's displayed size against its drawn size; Adapt Picture stretches the picture to the container you measured, never the other way round.
  5. Repeat for every nested container, because each container-to-picture pair needs its own Adapt Picture decision.
  6. Prove the resized layout on a test runtime or outside production hours before operators work against it.

Questions asked

Can I scale only some of the objects in a picture?

Not with these two properties. Adapt Picture and Adapt Size act on the whole picture inside one container, so every object in the loaded PDL scales together. If only part of a screen must shrink, split the content across two picture windows with separate containers and set Adapt Picture on each, or keep the fixed part outside the adapted picture and draw it at its final size.

When is Adapt Size the right setting?

When the picture should drive the window. If the loaded PDL is larger than its container, for example a detail screen drawn at full design width inside a smaller frame, Adapt Size grows the window to the picture's dimensions so nothing is clipped. It resizes the window; it never scales the picture down, which is why it cannot make oversized graphics smaller.

Why did the button bar keep its size while the pictures shrank?

The buttons are drawn in the main picture or a window of their own, outside any picture window you set Adapt Picture on, so no adaptation reaches them. After the worked example's shrink the adapted picture is about 565 pixels tall while the strip still needs its designed 233 pixels; together they need 798 pixels and the smaller screen offers 720. Scale the strip with the layout or draw the buttons inside an adapted picture.

How do I verify that the scaling actually applied?

Pick one object with a known drawn width, for example a pump symbol drawn 200 pixels wide. At the 2/3 shrink of the worked example it must display at about 133 pixels, because 200 × 2/3 = 133.3. Measure it on the running screen; if it still reads its drawn 200 pixels, Adapt Picture is on the wrong container or the runtime is still loading the old picture file.

Keep reading

  • Troubleshooting

    Adapt picture in WinCC 7.4 so migrated screens fit the new resolution

    Set Adapt Picture twice: once on the Graphics Runtime container under Computer Properties and once on every embedded picture window, because the runtime flag does not reach child picture windows. The OS Project Editor only remaps the design resolution; it does not scale the graphics into the space it frees. On clients, the @pclocal:: prefix fixes I/O fields but trend controls can keep plotting server data.

    HMI and touchscreens

  • How-to

    How to Convert a WinCC Project From 1024x768 to 800x600

    WinCC has no tool that converts an existing 1024x768 project to 800x600 automatically: you set the smaller picture size, then move and resize objects screen by screen. Because both resolutions are 4:3, the runtime adapt option scales everything uniformly to 78.125% with no distortion - usable as an interim display, but do the manual relayout for a permanent station.

    HMI and touchscreens

  • How-to

    Why WinCC Unified screen windows replace template screens

    WinCC Unified has no global template screens; you build the layout from a host screen holding screen windows, keep navigation in the host, change only the content window for page changes, and drive menu highlighting from one shared selection state routed through the same path for menu clicks and application-initiated navigation.

    HMI and touchscreens

Why an Ethernet Project Upload From an HMI Panel Keeps Failing