(1)| 7/29/2024 8:24 AM | |
|
Joined: 1/21/2013 Last visit: 1/17/2026 Posts: 4406 Rating:
|
Hi, To me, your questions sound like you want to create a navigation bar where the currently active button is highlighted and all others are not. There is a solution for this in the HMI Template Suite. In this solution, each button will call the same global script and the script will iterate over all the buttons and set the color depending on the button names that need to be in an indexed naming style. Kind regards |
| 7/29/2024 12:39 PM | |
|
Joined: 2/26/2024 Last visit: 1/15/2026 Posts: 135 Rating:
|
This (HMI Template Suite) link shows how it's been done on TP900. If not using a script how else can we change the button color on click and back to default color and another button is clicked? |
Last edited by: Mr_Prof at: 06/15/2025 16:19:21 |
|
| 7/30/2024 4:47 AM | |
|
Joined: 1/21/2013 Last visit: 1/17/2026 Posts: 4406 Rating:
|
Hi, The entry for the HMI Template Suite is somewhat longer because it shows different solutions for different devices. The examples above are for WinCC Unified. However, if you do not want to use scripting, there are of course alternatives. One approach I can think of is to use an internal tag and each button must set the tag to a unique number. This way you can use the tag to dynamically change the colors of the buttons depending on the value. Kind regards |
| 7/30/2024 1:30 PM | |
|
Joined: 2/26/2024 Last visit: 1/15/2026 Posts: 135 Rating:
|
HI Stephan, Can you provide one example on how to achieve it? Thanks. |
| 7/31/2024 10:20 AM | |
|
Joined: 1/21/2013 Last visit: 1/17/2026 Posts: 4406 Rating:
|
Hi, See the attached project for an example. Kind regards AttachmentTF319909.zip (399 Downloads) |
This contribution was helpful to
|
|
Follow us on