7/29/2024 8:24 AM | |
Joined: 1/21/2013 Last visit: 11/12/2024 Posts: 3262 Rating: (507)
|
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: 11/12/2024 Posts: 61 Rating: (0) |
I was looking specifically for MTP-1500. 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? |
7/30/2024 4:47 AM | |
Joined: 1/21/2013 Last visit: 11/12/2024 Posts: 3262 Rating: (507)
|
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: 11/12/2024 Posts: 61 Rating: (0) |
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: 11/12/2024 Posts: 3262 Rating: (507)
|
Hi, See the attached project for an example. Kind regards AttachmentTF319909.zip (208 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on