IMDTouchKnowledge BaseShop main store

How-to

Why WinCC Flexible Buttons Show a Dotted Focus Rectangle

HMI and touchscreens Published 4 min read

Short answer

The dotted rectangle on a WinCC Flexible 2007 screen is the runtime focus indicator, and the runtime, not your project, picks which object gets it. Deactivate focus through the View tab feature on every affected screen; there is no documented global switch and no supported way to assign initial focus to a specific button.

On this page
  1. Why does a WinCC Flexible screen put a dotted rectangle around one button?
  2. Can you choose which button gets focus when the screen opens?
  3. How do you turn off the dotted focus rectangle on a screen?
  4. Do you have to edit every screen in the project?
  5. Does deactivating focus also remove the object from the tab order?
  6. How do you verify the change in runtime?
  7. Questions asked

On a WinCC Flexible 2007 panel, the dotted rectangle around a button or I/O field is the runtime focus indicator, not a fault in the object and not something your project assigned. WinCC Flexible 2007 gives you no documented way to choose which object receives focus when a screen opens, and no global switch that turns the display of focus off. The supported fix is per screen: deactivate focus on the objects through the View tab feature, rebuild, transfer, and verify each screen in runtime.

Why does a WinCC Flexible screen put a dotted rectangle around one button? #

The dotted rectangle is the runtime focus indicator: WinCC Flexible gives exactly one focusable object on each new screen the focus, and the dotted outline is how the panel runtime draws the object that will receive operator input first. It is not a broken object and not an alarm. The visible effect is that one button or I/O field on every freshly opened screen carries the outline, and which one it lands on appears inconsistent from screen to screen. The selection behavior itself is not documented, so there is no rule you can predict or influence from the project; treat the initial focus as effectively arbitrary and plan the fix accordingly.

Can you choose which button gets focus when the screen opens? #

No. For WinCC Flexible 2007 there is no confirmed, documented way to hand the initial focus to one specific button or I/O field, and no project setting that selects it, so the practical fix is to deactivate focus instead of trying to direct it. The published guidance for this problem, the Siemens support FAQ entry 31676033 (point 2), describes exactly that: deactivate the objects, so that when the screen is called none of them shows the rectangle. If your actual requirement is to make one button the obvious first target, style that button visually rather than relying on the focus indicator.

How do you turn off the dotted focus rectangle on a screen? #

You deactivate focus for the objects on that screen through the View tab feature in the screen editor, then rebuild and transfer; once every focusable object on the screen is deactivated, the runtime opens it with no dotted rectangle on anything. Work through each affected screen like this:

  1. Open the affected screen in the WinCC Flexible screen editor.
  2. Use the View tab feature to deactivate focus for each button and I/O field on that screen.
  3. Cover every focusable object on the screen. If even one object keeps focus active, the runtime will draw the rectangle on it when the screen opens.
  4. Save, rebuild the project, and transfer it to the panel.
  5. Open the screen in runtime and confirm the rectangle is gone both at screen start and after pressing each object on it.

Do you have to edit every screen in the project? #

Yes. The focus setting is per screen and per object, and no confirmed global switch turns the dotted rectangle off for the whole project, so a project-wide cleanup means going through each screen that has buttons or I/O fields. This is exactly what the reported solution did: every screen in the project, one at a time, described as tedious but effective. Budget the work against your screen count, and schedule the download for a stop, because while the panel takes the new project the machine has no operator interface.

Does deactivating focus also remove the object from the tab order? #

No. Tab-order handling is a separate mechanism from the focus display, and for WinCC Flexible 2007 the practical answer is that objects cannot be excluded from the tab order, so treat the rectangle and the tab sequence as two different configuration tasks. Later panel families handle this differently: on Siemens basic panels the tab sequence and initial focus are configurable through configuring tab sequence and initial focus on KP400 basic panels, and on Comfort panels the input focus follows the configured sequence as covered in configuring TP900 Comfort input focus by tab sequence. None of that carries back to a WinCC Flexible 2007 target.

How do you verify the change in runtime? #

Rebuild the project, transfer it to the panel, then open every modified screen and check two things: no object carries the dotted rectangle when the screen first appears, and none picks it up after you press the buttons on that screen. If a screen still shows the rectangle, an object on it still has focus active; go back to the editor, deactivate that object, and repeat the rebuild and transfer. If your edits look right in the editor but the panel still shows the old behavior, work through the checks in why WinCC Flexible edits do not show in runtime before touching the focus settings again.

The decision, for both cases in one line: to stop the dotted rectangle on a WinCC Flexible 2007 panel, deactivate focus through the View tab feature on every affected screen, accept that the pass is screen by screen, and verify each screen at start and after a press; to choose a first button, style that button instead, because focus assignment is not supported.

Questions asked

Does the dotted rectangle change how the button works?

No. The outline only shows which object holds focus, so the panel runtime knows where key and navigation input goes. A button that has focus still runs its configured event exactly like a button that does not. Removing the focus display changes the picture, never the behavior, so there is no functional risk in deactivating it.

Why does the rectangle seem to land on a different object each time the screen opens?

The initial focus selection is not documented, so there is no rule you can rely on or configure against. Treat it as unpredictable from the operator's point of view. Deactivating focus on every focusable object on the screen removes the question entirely, because a screen with no active focus objects draws no rectangle at all.

Can I point the initial focus at one button instead of hiding it?

No supported method is established for WinCC Flexible 2007. The published guidance for this problem describes deactivating focus on the screen objects, not assigning it to one of them, so any script-based assignment would be unverified behavior rather than a configuration you can depend on across panels and runtime versions.

Keep reading

  • How-to

    How to Make Arrow Bitmap Buttons in WinCC Touch Panels

    Export each arrow as a 24-bit BMP at the button's exact pixel size, 64×64 px on a 320×240 TP177B, put it on a Button or an invisible button over a Graphic, and wire Press to SetBit and Release to ResetBit on discrete bits V100.0 to V100.3. The dot you see is a bitmap much larger than the button being clipped, not a broken import.

    HMI and touchscreens

  • How-to

    How to Manage WinCC Runtime User Accounts and Password Changes

    Open the WinCC User Administrator at runtime by launching PassCS.exe from a button with a ProgramExecute C action, using the full installed path C:\Program Files\Siemens\WinCC\bin\PassCS.exe. Gate the button with an authorization, and keep operator login, own-password change, and account administration as three separately tested operations. Comfort and Advanced panels are administered in the engineering tool instead.

    HMI and touchscreens

  • How-to

    Running a WinCC Flexible 2008 Project in PC Runtime

    Yes — WinCC flexible 2008 Advanced targets a PC station. Compile the project to a .fwx file and run it with the separately installed, tag-licensed WinCC flexible Runtime through its loader; the compile never produces an .exe.

    HMI and touchscreens