IMDTouchKnowledge BaseShop main store

Troubleshooting

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

HMI and touchscreens Published 7 min read

Short answer

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.

On this page
  1. Why migrated screens leave bands and scroll bars
  2. Enable Adapt Picture on the Graphics Runtime container
  3. Enable Adapt Picture on every picture window
  4. OS Project Editor or runtime-only fit: what each one does
  5. Fitting a 1920 x 1080 project onto a 1366 x 768 runtime PC
  6. Verify the fit before the machine returns to production
  7. The client trend that keeps plotting the server
  8. Questions asked

A WinCC 7.4 project that lands on a PC with a different screen resolution needs Adapt Picture switched on in two places, not one. Tick it for the Graphics Runtime container under Computer Properties, then tick it again on every embedded picture window, because the runtime-level flag does not propagate into child picture windows. The second switch is the one that gets missed, and it is why a migrated home page fits while every navigation target opens with scroll bars. The OS Project Editor solves a different half of the job: it remaps the stored design resolution to the new monitor, but it does not scale the graphics into the space that opens up. Below are the two settings in order, the choice between a remap and a runtime-only fit, a worked sizing example for the common move from a larger design resolution to a smaller runtime PC, and the client-side trend quirk that usually surfaces during the same migration.

Why migrated screens leave bands and scroll bars #

WinCC 7.x stores every screen at the resolution it was drawn at, and the graphics runtime opens each picture at those stored pixel coordinates inside its runtime window. A monitor smaller than the design size pushes the outer parts of the picture outside the window, where they show up as scroll bars; a larger monitor leaves empty bands around the picture.

Two independent levels decide the fit. The Graphics Runtime container scales the active top-level picture to the runtime window. Each picture window object scales whatever it has loaded to its own frame, and it does not inherit the container's flag. That is why a screen hierarchy fails in a particular way after a remap: the base screen matches the new monitor, but a picture window still sitting at its old geometry draws its content short, and the rest of the screen becomes scroll-bar travel. The station looks remapped, yet the graphics stop partway across the display with sliders covering the remainder. Getting the screens onto the new machine in the first place is its own job, covered in importing legacy HMI screens when migrating to a new panel; this page starts where they load at the wrong size.

Enable Adapt Picture on the Graphics Runtime container #

  1. In WinCC Explorer, right-click Computer in the project tree and choose Properties.
  2. Open the Graphics Runtime tab.
  3. Open the window attributes dialog on that tab.
  4. Tick Adapt Picture and confirm.
  5. Restart the graphics runtime so the flag takes effect.

This switch scales the top-level picture of every screen to the runtime window. The same tab also sets the size and position of the runtime window on the monitor; keep that window at the monitor's own resolution. For a project of plain screens without picture windows, this one flag finishes the fit. The moment screens embed picture windows, which is the usual layout for fixed navigation frames, the container flag leaves those embedded windows at their stored size, and the next pass works object by object.

Enable Adapt Picture on every picture window #

  1. Open the affected screen in the graphics editor and select the picture window object.
  2. Open its object properties and find Adapt Picture, the property that adapts the loaded process picture to the size of the picture window.
  3. Set it, save the screen, and repeat for every picture window instance in every screen the runtime calls.

WinCC 7.4 has no project-wide switch that reaches these objects for you, so treat this as a deliberate pass: list the screens with navigation frames and tick them off one at a time. A missed instance is quick to spot at runtime. The home page fills the monitor, one navigation target opens with sliders along the bottom and the right, and that screen's picture window still holds the old geometry. After the pass, no screen should need manual sliding.

OS Project Editor or runtime-only fit: what each one does #

The OS Project Editor remaps the design resolution: it reworks the stored screens to the size you give it and regenerates them at the target. It does not scale graphics into leftover space and it does not correct embedded picture-window geometry, which is why a remapped project can still need both Adapt Picture switches afterwards. Run it when the screens may be reworked, because base screens that match the monitor natively give the cleanest repaint. Skip it when the screens must stay exactly as drawn: set the runtime window to the new monitor's resolution under Graphics Runtime and let the two Adapt Picture switches do the scaling at load time.

Both paths need the picture-window pass. When the destination is a Comfort panel rather than another Windows PC, the workflow changes, and migrating a WinCC runtime project to a Comfort panel covers that route. If this migration exists because the old runtime PC failed or was discontinued, choose the replacement hardware first and match its native resolution: today's industrial panel PCs come in screen sizes a 7.4 project never anticipated, and the settings above are what reconcile the project to whichever one you pick.

Fitting a 1920 x 1080 project onto a 1366 x 768 runtime PC #

The case shape below is the common one: a project drawn for a larger monitor loaded on a smaller test PC, the setup where remapped screens still leave part of the display unused. The two resolutions are illustrative example values, not measured site data.

  • Design resolution 1920 x 1080 pixels, the size the screens were drawn at.
  • Runtime window 1366 x 768 pixels, the test PC monitor. Both are 16:9 panels.

The rule: with Adapt Picture active, the runtime scales the loaded picture by the smaller of the width ratio and the height ratio, keeping proportions. Without it, the picture loads at its stored pixel size and is centered, and everything past the window edge turns into scroll travel.

The arithmetic:

  • Width ratio: 1366 / 1920 = 0.711 (rounded from 0.7109).
  • Height ratio: 768 / 1080 = 0.711.
  • Applied scale: 0.711, since the smaller ratio governs and here the two agree.
  • A button drawn 100 px wide renders 100 x 0.711 = 71 px wide.
  • Without the flag, the overflow is 1920 - 1366 = 554 px horizontally and 1080 - 768 = 312 px vertically, which is a scroll bar on each axis.

Result: with the flag set, the picture scales to 1365 x 768 pixels against a 1366 x 768 window, one pixel of rounding short of a perfect fill, with no distortion because the proportions were preserved.

Decision: equal ratios mean Adapt Picture alone produces a full, undistorted fit once the picture-window flags are in place. When the ratios differ, say a 4:3 project shown on a 16:9 monitor, the smaller ratio still sets the scale and the spare axis shows background rather than stretched objects; leave that strip as background instead of forcing the fit.

Verify the fit before the machine returns to production #

  • Restart the graphics runtime from WinCC Explorer after any Computer Properties change; the container flag applies on the next start.
  • Check that the home screen fills the monitor with no background band on any edge.
  • Open every navigation target in turn and confirm that no picture window shows scroll bars.
  • On a server/client system, repeat the whole pass on a client, not only on the server; that is also where the trend problem in the next section shows itself.
  • After a large downward move, open every popup and dialog once, because scaling moves them with the picture and a few fixed offsets may need a nudge.

The client trend that keeps plotting the server #

On a WinCC 7.4 server/client system, a screen that shows the local PC's own data, such as PC name, memory usage or the logged-on user, misbehaves on clients: the fields display the server's values. Putting the @pclocal:: prefix in front of the tag on each I/O field fixes the fields, because that prefix tells a client to resolve the tag against itself. The trend controls plotting the same data do not follow; they keep drawing the server's values even with the prefix in place.

Work through it on a client rather than on the server bench. Open each trend's tag connection and read which tag it is really using, and expect the I/O fields to follow the prefix while the trends do not. Where a client must trend its own PC data, the trend has to be fed from tags the client resolves locally; the prefix is an I/O-field fix, not a trend fix.

Questions asked

Does Adapt Picture rearrange the objects on my screens?

No. The setting scales the finished picture as a single unit, so relative positions survive, but any crowding designed into the screens scales along with them. Popups and dialogs placed at absolute pixel positions are the risk after a large downward move, because their offsets scale with everything else and can land off-target. Open each popup once at runtime and nudge the few objects that sit wrong.

Do I need to run the OS Project Editor on every client as well?

Only in projects that store their own screen copies. A remap changes the screens of the project it runs in, and a client holding its own project inherits nothing from the server project. If clients load their screens from the server, one remap in the server project covers them. If each client keeps a copy, either remap each copy or leave the screens untouched and rely on the runtime window size with Adapt Picture.

Is Adapt Picture the same option as fit to screen in a TIA Portal project?

It is the 7.x counterpart of that idea. In TIA Portal the equivalent lives in the runtime settings of the HMI device, where the screen resolution is selected for the target, so one setting covers the terminal. WinCC 7.4 splits the job between the Graphics Runtime container and each picture window, which is why a single flag is never enough there. After a conversion to TIA Portal, set the target resolution and resize the screens once in the new tool.

Does the runtime window size setting change the Windows desktop resolution?

No. The size and position settings under Graphics Runtime place the runtime window on the desktop; the monitor resolution itself stays under the Windows display settings. Set the runtime window to the desktop resolution so the adapted picture is not scaled a second time by the operating system, which would soften the graphics and shift touch targets.

Why does the local-PC prefix work on I/O fields but not on trend controls?

Because object classes resolve tag prefixes independently in this version. I/O fields apply the prefix on the client and display that client's own values, while the trend control does not re-source its curve through the prefix and continues against the server. Build the difference into acceptance testing: confirm every prefix-carrying field on a real client, and expect to source client-side trends locally rather than patching them with the prefix.

Keep reading

  • 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

    How to Migrate a ProTool HMI Project to a New Touch Panel

    A discontinued ProTool-era panel is replaceable without a rewrite only when the editable project file exists: migrate it under WinCC flexible 2008 with Service Pack 2, Advanced edition for ProTool Pro projects, then review every conversion message and adapt tags and screens for the chosen target. Without the .ptp file, budget the job as a rebuild.

    HMI and touchscreens

  • How-to

    Migrating a WinCC PC Runtime project to a Comfort panel

    There is no whole-project conversion from a WinCC PC runtime station to a TP1500 Comfort panel. Copying screens inside TIA Portal is supported, but each object, faceplate and system function must be dispositioned and reconfigured for the Comfort system. Advanced sources transfer with the least rework, Professional sources need object-by-object reconciliation, and a Unified source should move to a Unified Comfort panel instead of being converted.

    HMI and touchscreens