X200881 писал(а):Здравствуйте.
1. Скажите пожалуйста, где хранится значение предыдущего окна панели? Это нужно для понимания функции "Вернуться на предыдущее окно".
2. Есть окно "Ошибки" на котором кнопка "Вернуться на предыдущее окно", т.к оно может быть вызвано из разных мест. Всё работает, пока не вкл. скринсейвер, а я остаюсь в окне "Ошибки", и при нажатии на кнопку с функцией "Вернуться на предыдущее окно", вызывается скринсейвер. Как сохранить значение предыдущего окна, которое вызвало окно "Ошибки"? Или что бы скринсейвер не менял значение "предыдущего окна" того, из которого перешло на окно "Ошибки"?
Спасибо.
Этот алгоритмический "фокус" описан в Руководстве пользователя EasyBuilder Pro в главе 5-18 на странице 81:
Specify a window to be displayed when HMI goes to screen saver mode.
Note: In a saver window, the [Return to previous window] option of a Function Key can be used to wake up HMI from screen saver mode; therefore, please avoid editing the project in the way shown as the example below, to prevent the HMI from going to screen saver mode repeatedly.
Example: A Function Key used to “Return to previous window” is placed in Window # 11, and the HMI goes into screen saver mode when Window # 11 is displayed.
In this case, the HMI can wake up from screen saver mode when any point on its screen is touched, and Window #11 will be displayed again. At this moment, if the Function Key in Window # 11 is touched, the HMI goes into screen saver mode again.
Solution: 1. When a Function Key with “Return to previous window” selected is placed in the saver window, please use “Change full-screen window” for all other windows.
2. When “Change full-screen window” is used for the saver window to change to a specific window (e.g., home page), please make sure that “Return to previous window” is not used in this destination window. The “Return to previous window” option can still be used for other windows.
Выход прост: меняйте назначение кнопки на экране скринсейвера или вовсе отключите его.
В системных регистрах хранится только номер текущего базового окна -
LW-9050 (16bit) : current base window ID и
PLW-9050 (16bit) : current base window ID (on tablet)
Хороший вопрос содержит половину ответа - A good question contains half the answer