IMDTouchKnowledge BaseShop main store

Troubleshooting

Why an invisible HMI button shows a focus edge in runtime

HMI and touchscreens Published 6 min read

Short answer

The visible edge around an invisible button is the panel's runtime focus indicator, drawn at the width set on each button object; it is not the invisible fill or border leaking through. Rebuilding the outlined button only moves focus to a neighbor with the same nonzero setting. Set the focus width property to 0 on every invisible button in the group, then exercise navigation, activation and screen re-entry to confirm the edge is gone.

On this page
  1. The edge is the focus layer, not the appearance layer
  2. What the symptom tells you
  3. Set the focus width on the whole group
  4. Ten invisible buttons on one screen, one of them rebuilt
  5. Verify before you call it fixed
  6. Pitfalls that keep the edge alive
  7. The decision for each case
  8. Questions asked

That hard edge around a button you made invisible is not your button leaking through. It is the runtime focus indicator: the panel marks the interactive object that currently holds focus and draws that mark at the width configured on the object itself. The invisible fill and border you set are one visual layer; the focus edge is a second layer with its own property, so a fully invisible button can still show an edge. That also explains the behavior after a rebuild — deleting and recreating the outlined button changes which object the panel focuses first, so the edge moves to a neighbor whose setting is still nonzero. The fix is Properties > Focus width set to 0 on every invisible button in the group, not only the outlined one.

The edge is the focus layer, not the appearance layer #

In a runtime, focus is the state that names the one interactive object now receiving input — keyboard characters, function-key navigation, the order the panel follows through the screen. It is not the highlight you see when you click an object in the editor; that selection exists only on your engineering PC. Making a button's fill, border and label invisible removes none of it: the object stays interactive and focus-capable, and the panel draws its focus indication at the width set on that object.

Current Siemens HMI documentation names the split directly: a WinCC Unified option button carries a ShowFocusVisual setting that decides whether the object is highlighted when in focus, separate from its BorderWidth value. The same convention runs through web interfaces, where accessibility guidance treats the visible focus outline as the way a keyboard user knows which control will act. The indication is designed behavior, not a rendering fault in your panel and not a bad transfer.

What the symptom tells you #

  • The interior stays invisible while an edge shows: the appearance layer did its job, the focus layer is drawing. Read the focus width setting, not the colors.
  • The edge moves to the neighbor after you rebuild one button: runtime focus, not geometry, decides where the edge draws. Rebuilding changes the order the panel reaches the objects, so a different one takes focus.
  • Only some invisible buttons ever show it: the edge lands on whichever object holds focus at that moment. The rest carry the same nonzero value silently and can light up later.
  • The screen shows the edge on the panel and in runtime on the PC alike: the indication belongs to runtime interaction, so the correction lives in the project, not in the hardware.

If what you see is a dotted rectangle rather than a solid edge, it is the same focus layer drawn in another style; the dotted focus rectangle case on WinCC Flexible buttons is worked through separately.

Set the focus width on the whole group #

  1. Open the project in WinCC flexible 2008 SP1 and select an invisible button that showed the edge.
  2. Open its Properties and set Focus width to 0. Only the indication changes: the button's event, the address it writes and its security level stay as configured.
  3. Select every other invisible button on the screen and set the same value. Controls that behave alike get the same setting.
  4. Repeat on every other screen that uses invisible buttons — the setting travels with each object, not with the project.
  5. Transfer the project and run the sequence that exposed the edge, then walk every navigation path, activate each invisible button and leave and re-enter the screen.

Changing only the outlined object is incomplete. The property lives on each button, so the correction goes object by object; the moment focus advances to the next invisible button with a nonzero value, the edge appears there.

Because the button shows nothing, give the operator feedback another way: bind the button's state to a separate visible indication, as in binding a button command to a separate feedback color. If an invisible button issues start, stop or jog commands, that separate indication is not optional — a hidden control must never act without visible confirmation of the machine state.

Ten invisible buttons on one screen, one of them rebuilt #

Worked example, in the shape of the reported fault: a screen carries a set of identical invisible buttons as a custom keypad overlay, one of them shows an edge after transfer, and so far only that one has been corrected, by rebuilding it.

Inputs:

  • Invisible buttons on the screen: 10 — example count for this case, typical of this fault
  • Buttons showing the edge: 1 — the reported symptom
  • Buttons actually corrected: 1 — only the outlined one, via the rebuild loop
  • Pass value of the focus width setting: 0 — the correction documented above; a button set to 0 draws no edge

Rule: count the buttons that can still draw an edge. Every invisible button whose focus width is still nonzero is a candidate, and runtime can hand focus to any candidate at any navigation step.

Arithmetic:

  • Candidates left by the rebuild loop: 10 - 1 = 9 buttons
  • Candidates left once the whole group is set: 10 - 10 = 0 buttons

Result: rebuilding the outlined button leaves 9 candidates; setting the group leaves none.

Decision: a fix that touches only the outlined object passes at exactly 0 candidates and never before. Any count above 0 leaves the symptom available, and each rebuild simply re-deals focus among the rest — which is exactly why the edge kept migrating. The screen is corrected when no invisible button in the group can draw an edge.

Verify before you call it fixed #

  • Property check: open each invisible button and confirm the Focus width field reads the zero value you set.
  • First display: start the transferred project on the panel; no edge on any invisible button at startup.
  • Focus movement: operate every configured navigation path — function keys, direction keys where configured, touch. No outline appears on any invisible button.
  • Action check: activate each invisible button by its intended input; its configured action executes.
  • Screen re-entry: leave the screen and return; the edge stays absent after runtime initializes focus again.

If an edge remains, find the exact object under the outline before editing anything. Overlapping interactive objects can make the wrong button look responsible: select each object individually and compare position, size and focus width against the outline you saw.

Pitfalls that keep the edge alive #

  • Editing fill, border or color instead: the edge is drawn by the focus layer, so appearance changes leave it untouched.
  • Hunting for a deselect-all command: editor selection is not runtime focus; there is nothing in the editor to deselect.
  • Rebuilding buttons one after another: each rebuild reshuffles the focus order and never touches the focus width value.
  • Removing the button's function to hide the edge: you lose the control; suppress the indication and keep the function.
  • Correcting one screen and stopping: every other screen with invisible buttons carries nonzero values on its own objects.

The decision for each case #

This fault family recurs on other panel generations under other names; for a compact Basic mono panel, the documented invisible-button focus border workaround ends at the same focus setting.

  • Touch-only screen with invisible buttons: set the zero value on every invisible button, on every such screen. Nothing navigates to a hidden target, so nothing needs to draw focus.
  • Screen also driven from keys or function keys: keep the focus indication on the controls that receive key input and zero only the invisible touch targets, so key navigation keeps its cue while hidden areas stay blank.
  • Edge still present after the whole group is corrected: the outline belongs to another object type. An input field draws its own focus presentation — turn that object's focus indication off and re-test.

Questions asked

Does setting the focus width to zero disable the button?

No. That value controls only whether the panel draws the focus indicator. The button keeps its configured event, the address it writes and its security level, so activate every invisible button once in runtime and confirm each action still executes. On current tools the same behavior is a named switch on the object, showing whether it is highlighted when in focus, separate from its border width value.

Is there a command to deselect the focus in the editor?

No, because the edge is not editor selection. Selection is a configuration-time highlight on your PC, while focus is a runtime state on the panel that names the object now receiving input; one object holds it while the screen runs. The only editor-side control you have is each button's focus width value, so correct the group object by object instead of hunting for a deselect command.

What if an edge still appears after every invisible button is corrected?

Overlapping interactive objects can make the wrong button look responsible, so select each object individually in the editor and compare position, size and its focus width value against the outline you saw. If the outline belongs to an input field or another object type, that object carries its own focus presentation setting to switch off; the buttons were never the source.

Why does the panel focus an invisible button when nobody uses a keyboard?

Touch is only one input path on these panels. Function keys, direction keys and the panel's own entry order move focus from object to object whether or not anyone touches the screen, and the handover does not check whether the target is visible. A hidden button therefore receives focus and draws its edge: invisibility changes what you see, not what the panel can reach.

Keep reading

  • Troubleshooting

    HMI shows Text instead of captions after a project download

    When every new text box, button and text list shows the placeholder word Text after a download — and older objects show captions in a different language — the panel's active runtime language no longer matches the project language the text was entered in. Switch the panel back to that language; no re-download, font change or factory reset is needed. A caption that shows Text under every enabled language was never entered and needs a transfer.

    HMI and touchscreens

  • How-to

    Show an HMI Button Only When a PLC Bit Is High

    Bind the button's visibility property to the Boolean PLC tag and map true/high to visible, false/low to hidden, then test both states on the panel in runtime. Combine several conditions into one tag in the PLC, and keep process permissives in the controller because a hidden button is only a display change.

    HMI and touchscreens

  • How-to

    Why WinCC Flexible Buttons Show a Dotted Focus Rectangle

    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.

    HMI and touchscreens