12/10/2019 12:18 AM | |
Joined: 5/13/2017 Last visit: 7/11/2024 Posts: 9 Rating:
|
HI, Online Support Can you give an example in Wincc Unified using script to change background color of a circle? MaxBruce ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 12/11/2019 07:49:40New subject after splitting |
|
12/11/2019 7:18 AM | |
Joined: 9/27/2007 Last visit: 12/18/2020 Posts: 993 Rating:
|
Hi MaxBruce, here an smal example. In the example, the color of the circle (Circle_1 - Circle_4) over the button "Button" should be changed to yellow. Several screen windows ("Screen windows") are used here, these thus representing a window screen object hierarchy. "FindItem()" with relative object paths //Change Background Color of 'Circle_3' Screen.FindItem('Circle_3').BackColor = 0xFFFFFF00; //Change Background Color of 'Circle_2' Screen.FindItem('../Circle_2').BackColor = 0xFFFFFF00; //Change Background Color of 'Circle_1' Screen.FindItem('../../Circle_1').BackColor = 0xFFFFFF00; //Change Background Color of 'Circle_4' Screen.FindItem('./Screen window_3/Circle_4').BackColor = 0xFFFFFF00; Hope it helps you, |
Learn more about visualization - visit the HMI courses of Siemens AG! |
|
This contribution was helpful to
6 thankful Users |
12/12/2019 2:12 AM | |
Joined: 5/13/2017 Last visit: 7/11/2024 Posts: 9 Rating:
|
|
12/15/2019 1:36 PM | |
Joined: 5/13/2017 Last visit: 7/11/2024 Posts: 9 Rating:
|
|
Follow us on