By installing patch 8 (later removed because it was causing problems) I encountered the same problems with patch 9 (always 3.16).
Practically if there is an textfield in the page it acquires the focus and it is impossible to remove the focus (by clicking outside the field for example).
I found this problem updating my program from p007 to p008 or p009.
I tried to simulate the problem with two new projects on two different systems respectively and behave the same way. (see attached photo).
The basic problem is that using the "click", "focus in" and "focus out" codes every time the page is opened these are triggered without intention, and the focus is never triggered out (unless you click on another textfield, and then the problem moves to last texfield clicked).
I saw the new focus functions (like focus displayed and focus policy) but none of them solved my problem.
Surely something has changed in the focus management and I haven't managed to set it correctly.. can you tell me where I'm wrong? How do I lose focus when I click out of the field?
Given that going back to version 7 everything back to work correctly. (I tried to install the patches on 3 different PCs and it always behaves the same way. Both on our already developed project and on new projects)
Texfield focus in and focus out
- andrea.bertorelli
- Posts:33
- Joined: Wed May 31, 2017 3:58 pm
- mplatz
- Posts:9
- Joined: Mon Oct 29, 2018 9:00 am
Re: Texfield focus in and focus out
Dear Bertorelli,
I have looked at the behavior and forwarded to our development.
kr,
Matthias Platzer
I have looked at the behavior and forwarded to our development.
kr,
Matthias Platzer
- andrea.bertorelli
- Posts:33
- Joined: Wed May 31, 2017 3:58 pm
Re: Texfield focus in and focus out
Thank you, let me know! I'm curious to try the new versions!
- mplatz
- Posts:9
- Joined: Mon Oct 29, 2018 9:00 am
Re: Texfield focus in and focus out
Dear Bertorelli,
Within WinCC-OA 3.16 P007 there was a change in the behavior of focus:
Now every shape can define its focusPolicy and if the default input focus should be shown.
Further details can be found inside the WinCC OA documentation.
Note the following change in behavior:
Before this changes, if a widget had focus and the user clicked on the panel background, the widget lost focus.
This did not happen when the focus was on a primitive shape.
So this was inconsistent and wrong. There is no need to remove the focus from a widget only for a click on the panel background.
Now the focus is kept where it is.
If you need further assistance please get in contact with your WinCC-OA support.
kr,
Platzer Matthias
Within WinCC-OA 3.16 P007 there was a change in the behavior of focus:
Now every shape can define its focusPolicy and if the default input focus should be shown.
Further details can be found inside the WinCC OA documentation.
Note the following change in behavior:
Before this changes, if a widget had focus and the user clicked on the panel background, the widget lost focus.
This did not happen when the focus was on a primitive shape.
So this was inconsistent and wrong. There is no need to remove the focus from a widget only for a click on the panel background.
Now the focus is kept where it is.
If you need further assistance please get in contact with your WinCC-OA support.
kr,
Platzer Matthias
- andrea.bertorelli
- Posts:33
- Joined: Wed May 31, 2017 3:58 pm
Re: Texfield focus in and focus out
Thanks for your careful reply.
In this case, however, every time I switch from one page to another every object (whether this is a texfield or not) that has a "keyboardfocusout" function, this function will never run because the page change starts before the "keyboardfocusout".
The problem is that our entire program is based on actions with focus IN and focus OUT, and that patch makes it unusable.
In this case, however, every time I switch from one page to another every object (whether this is a texfield or not) that has a "keyboardfocusout" function, this function will never run because the page change starts before the "keyboardfocusout".
The problem is that our entire program is based on actions with focus IN and focus OUT, and that patch makes it unusable.