IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC 7.0 runtime minimizes apps on a second monitor

HMI and touchscreens Published 8 min read

Short answer

WinCC 7.0 runtime takes the foreground on every monitor because the default @screen start picture opens the navigation frame across the whole desktop. Select the second one-column variant in the OS Project Editor layout, replace @screen with your own start picture in the computer properties, and keep picture windows inside monitor one's pixel range.

On this page
  1. Why does WinCC 7.0 runtime minimize the application on my second monitor?
  2. Which layout do I select in the OS Project Editor for one monitor?
  3. How do I replace the @screen start picture in the computer properties?
  4. How do I stop the navigation toolbars appearing after the layout change?
  5. Where should a picture window sit on a two-monitor extended desktop?
  6. Which Windows focus settings still steal the foreground?
  7. How do I verify the fix on the runtime PC?
  8. What is the full settings list for a two-monitor WinCC 7.0 station?
  9. Questions asked

WinCC 7.0 runtime minimizes the application on your second monitor because the default @screen start picture opens the navigation frame across the whole virtual desktop, and every activation of that frame takes the Windows foreground on all displays at once. Fix it with two settings: select the second one-column layout in the OS Project Editor's Layout tab, and replace @screen with your own start picture on the computer's Graphics runtime tab. Then lock picture windows inside monitor one's pixel range, clear the topmost attribute, and leave ForegroundLockTimeout at its production default. In the reported case — Windows Server 2008 R2, 32 GB of RAM, an NVIDIA 300-series card and a 1920×1080 TV fed through a DVI-to-HDMI cable — Word, Excel and a viewer all stay open on the TV once those settings are in.

Why does WinCC 7.0 runtime minimize the application on my second monitor? #

The runtime's default start picture @screen builds its toolbar set and screen windows on the whole virtual desktop, and every activation of that frame pulls the Windows foreground onto all monitors at once, so the application on the TV drops to the taskbar.

The symptom in the reported case is not specific to one program: the TV application minimizes just the same when Word or Excel sits there, which shows the trigger is the runtime frame, not the other software.

Three layers decide the outcome. The OS layout defines how many monitors the runtime manages. The start picture defines whether the desktop-wide frame exists at all. Window placement defines which monitor each window paints on, and the topmost attribute decides whether a window can outrank the focus of the others. Treat all three together. One warning belongs here: if the TV shows something an operator must act on, a screen that the runtime can minimize is not a monitoring station, so put genuinely safety-relevant indications on windows that stay visible.

The same foreground fight appears in other products; the fix for an InTouch application that loses focus to other windows describes it from another runtime's side.

Which layout do I select in the OS Project Editor for one monitor? #

Open the OS Project Editor from the WinCC Explorer navigation tree, go to the Layout tab, and select the one-column configuration, the second of the six available layouts, which keeps the runtime managed to a single monitor.

The editor offers six layouts, and the second variant of the one-column arrangement is the one reported verified against this exact fault in a working project. Start the editor by double-clicking OS Project Editor in the WinCC Explorer navigation tree, open the Layout tab, pick that entry from the available-layouts list and confirm with OK. Rebuild and restart the runtime so the new division takes effect.

Expect one side effect immediately: the one-column variant re-creates the standard OS navigation windows on the managed monitor. That is not a failure of the setting; it is the frame you actually want, minus the toolbars you do not, and the next two sections deal with exactly that.

How do I replace the @screen start picture in the computer properties? #

In WinCC Explorer, open Properties on the computer entry and, on the Graphics runtime tab, set the start picture to your own project picture instead of the default @screen; restart the runtime so the navigation frame is never created.

@screen is the integrated split screen of WinCC V7: it carries the toolbar set, the screen divider and the windows that span the desktop. When the start picture is a picture of your own, for example main_overview.PDL, the runtime never instantiates that wrapper, so no desktop-wide frame exists to receive the foreground in the first place. Enter the name of your home picture on the Graphics runtime tab of the computer properties dialog, restart the runtime, and the minimizing loses its source.

Keep the runtime window in standard window mode while you test, because a maximized borderless window is harder to compare against the TV application; once the behavior is proven, size it as the station needs.

How do I stop the navigation toolbars appearing after the layout change? #

Selecting the one-column layout brings back the standard OS navigation windows, so clear every toolbar entry you do not use on the Toolbars tab of the OS Project Editor; if you navigate with self-made buttons, leave all of them cleared.

The reappearance is built into the variant: it assumes the standard OS navigation with the picture tree and the toolbar set, so those windows come back with it. If navigation is manual, built with self-made buttons and no Picture Tree Manager, leave the entire toolbar set cleared; the layout still keeps the runtime inside its one column. If the project does use the Picture Tree Manager, assign the navigation window to monitor one so it cannot drift onto the TV.

Projects that deliberately run two screens with navigation should instead keep WinCC dual-monitor navigation inside picture windows, which removes the free-floating navigation windows altogether.

Where should a picture window sit on a two-monitor extended desktop? #

Two 1920×1080 panels in extended mode make a 1920 + 1920 = 3840 pixel desktop, so lock the runtime picture window at X = 0, Y = 0, width 1920 and height 1080; anything placed at 1920 pixels or beyond opens on the TV.

The division is simple once stated: monitor one owns the horizontal range 0 to 1919 and the TV owns 1920 to 3839. A window whose left edge sits at 1920 or beyond paints entirely on the TV, and a window wider than monitor one crosses the boundary and shows on both — precisely the desktop-spanning effect that starts this fault. For any other resolution pair the same rule applies: the boundary sits at the primary monitor's width, so divide at that number.

Clear the topmost attribute — the setting that keeps a window above all others — in the picture window's properties in Graphics Designer, because a window holding that priority keeps the focus lead across every monitor. The coordinate logic is the same one behind how one HMI runtime places windows on two monitors, shown there for other runtimes.

Which Windows focus settings still steal the foreground? #

Two workstation-level settings remain: ForegroundLockTimeout in HKCU\Control Panel\Desktop, which defaults to 200000 ms and lets Windows refuse a background program's demand for the foreground, and the display arrangement itself, which must be extended rather than cloned or spanned.

The registry value protects the application the operator last touched: within the timeout after an input, Windows turns down a request from a background program to seize the foreground. Setting it to 0 removes that protection, which is useful only to reproduce the fault on the bench; production stays at the default, because the protection is exactly what you want between the operator and the runtime frame.

On the display side, run extended mode with each panel at its native resolution and install the current certified driver for the graphics card; clone mode mirrors the runtime onto the TV by definition, and a spanned desktop hands the runtime one wide surface to occupy. The same foreground mechanism produces the separate fault in which a login dialog grabs focus on WinCC RT Professional stations with multiple monitors, which has its own documented fix.

How do I verify the fix on the runtime PC? #

Start the second application first, click into its window, then start the runtime; the runtime frame must appear on monitor one only and the application on the TV must keep keyboard focus through navigation changes.

Run this on the bench, not on a live station, and run it twice, because a single pass can pass by timing luck.

  1. Reboot the runtime PC and log in.
  2. Open the second application — Word, Excel or a viewer — on the TV monitor and click into its window so it holds the keyboard focus.
  3. Start WinCC runtime.
  4. Confirm the runtime frame and any kept toolbars appear on monitor one only, with nothing new painted on the TV.
  5. Operate the runtime: change screens, navigate, acknowledge.
  6. Click the TV application's title bar; it must raise without being minimized, and typed keys must reach it.
  7. Stop and restart the runtime once more; the TV application must survive both starts in place.

If a step fails, the failure names the setting: a frame on both monitors points back at the layout, a frame at all points back at the start picture, and a minimized TV application after a clean start points at the topmost attribute or the display arrangement.

What is the full settings list for a two-monitor WinCC 7.0 station? #

Six changes decide it: the one-column second layout, your own start picture on the Graphics runtime tab, cleared toolbars, a picture window locked inside monitor one's pixel range, no topmost attribute, and ForegroundLockTimeout left at 200000 ms in production.

Where Setting Value that stops the minimizing
OS Project Editor, Layout tab layout variant 1 column, the second variant
Computer properties, Graphics runtime tab start picture your own picture, not @screen
OS Project Editor, Toolbars tab navigation toolbars cleared unless the station uses them
Graphics Designer picture window position and size inside monitor one's rectangle
Graphics Designer picture window topmost attribute cleared
Runtime PC registry ForegroundLockTimeout production default

Apply the first two and the minimizing stops; the other four keep the frame where it belongs and the operator's focus where they left it. Leave either of the first two unset and the fault returns on the next runtime start, regardless of the graphics card or the cable.

Questions asked

Does plain WinCC 7.0 always have the OS Project Editor?

No. The OS Project Editor comes with the process-control option, so it appears in WinCC Explorer on OS stations that have it installed. On a plain WinCC 7.0 station without that option there is no Layout tab to change; the start-picture change in the computer properties then does the confining work on its own, because the @screen frame is the only thing that spans the desktop.

Does it matter that the second screen is a TV on a DVI-to-HDMI cable?

No. The focus fault is created by the runtime frame, not by the display hardware or the cable. Put the desktop in extended mode, run the TV at its native resolution, and select the matching input on the TV itself. A consumer TV survives less heat and dust than an industrial display, so treat it as the part most likely to fail first, not as the cause of the minimizing.

Does the same fix apply to WinCC Runtime Professional?

No. Runtime Professional in TIA Portal has no OS Project Editor and no @screen start picture; you assign screens to monitors through its own runtime settings and screen-window properties instead. The symptom there is usually a login dialog or message window pulling the foreground, which is a separate configuration from the one described here.

Why did my project layout change after I pressed OK in the OS Project Editor?

The layout variant defines how the managed monitors divide into columns of automatic screen windows, so switching variants resizes or repositions those automatic windows. Pictures you built yourself keep their configured sizes. Save the project, rebuild it and restart the runtime before judging the result, then clear the navigation windows the new variant added and re-test the second application.

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

  • Troubleshooting

    Why WinCC Runtime Advanced opens windowed under Operate

    When the runtime is full screen started by hand but windowed when Operate launches it, the project and installation are proven good and the fault is in the Operate integration. With oemframe set, Operate owns the window frame: audit the process registration, the area mapping, the panel type and resolution match, and the Integrate Create MyHMI/WinCC version pairing, and keep the shipped WindowsStyle_Off default.

    HMI and touchscreens

  • Explainer

    Third-party touchscreen panels and the runtime target that decides

    An embedded-panel project only ever downloads to the panels listed for that engineering tool, so a non-vendor touchscreen cannot take its place. A third-party touchscreen works only in a PC-based architecture, where a licensed runtime on the host passes the release's documented OS, resource and touch-driver checks. Pick the architecture first, then qualify the hardware.

    HMI and touchscreens