Changing a WinCC Buttoncolor in VBscript

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hi,

I tried this:
HMIRuntime.Screens("Mainscreen.bottomwindow:bottomwindow").ScreenItems("btn_body").back.color = RGB(255,255,255)
HMIRuntime.Screens("Mainscreen.bottomwindow:bottomwindow").ScreenItems("btn_body").Font.color = RGB(0,0,0)

But Object doesnt support this method or property, what could be the mistake ?

Kind regards,
C
 
Found it

HMIRuntime.Screens("Mainscreen.bottomwindow:bottomwindow").ScreenItems("btn_body").backcolor = RGB(255,255,255)
HMIRuntime.Screens("Mainscreen.bottomwindow:bottomwindow").ScreenItems("btn_body").Forecolor = RGB(0,0,0)

this works
 

Similar Topics

Hi, What I thought should be relatively simple process turned into a bit of an issue at a client today. I'm not as experienced using Siemens /...
Replies
8
Views
7,210
Hello, I need help on changing tags inside an object. I have an object that uses the visibility and appearances under animations. An external tag...
Replies
0
Views
2,123
Here's My Set Up. HMI MP377, Siemens CPU 319F PLC. Here's what I need to happen. On a BOOL being set(or any data type really) I need to bring...
Replies
2
Views
1,401
Hello everyone, I have created a faceplate in wincc flex and i can change the color of, for example, a button based on tagvalues i import from a...
Replies
6
Views
3,815
I use WINCC Flexible 2008 with 2 PLC CPU 315-DP in a software redundacy configuration. I can configure 2 Connection for 2 CPUs but my tag can...
Replies
10
Views
6,973
Back
Top Bottom