Change Buttoncolor in WINCC

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hi, I'm a beginner in WinCC and would like to change the color of a button when a certain picture is vieuwed. I made a navigationmenu.pdl, a status.pdl and a main.pdl. In the main (startscreen) I placed Status.pdl in the top and Navigationmenu.pdl in the bottom. In the middle the pictures mon1.pdl, mon2.pdl, ... are showed when a left mouse event happens in the navigationmenu.
I made a 16 bit Unsigned Tag, every buttons sends a constant value to this tag. That's the way how I call picturenames.

What do I need to know: How can I write this in C or VBS. I am a beginner and don't know how to write this.

The color of button1 for example is coupled with the value 1 of the screens tag. when picture mon1.pdl is showed in the middle, the color of button1 must become yellow for example

Many tnx.
 
Hello Combo;

Here is the recommended (by Siemens) way of making a object property dynamic:
Open the properties of the button (right-click on it), select Colors; make the colour dynamic and use a Tag or a Dynamic dialog to change the property following a tag value. There is no need to do this in C-script or VBS; also remember thet every script you add will consume more processor time; this will eventually show up in the update time of your screens and becomes quickly irritating.
Hope this helps,
Daniel Chartier
 
hi

maybe a little question,

when I do it analog, then it's UPTO value, all the other buttons are changing to, when I choose button 8, then 8 buttons will change...

So it works not fully 100%

Bit isnt the solution I think, because I use constant values to change Picture windows...


Have u an Idea ?
 
Hello Combo;

If you want to do it with analog (there are other choices) you can set ranges: 2 to 2, 8 to 8... that will apply your dialog to only one value. At least that is how i remember it.
Hope this helps,
Daniel Cartier
 

Similar Topics

I have two identical machines running similar HMI projects, the only difference is one is done in FactoryTalk View Version 10 and the other is...
Replies
4
Views
177
Hoping someone can give me some guidance or confirmation of what I need to do. We have a FactoryTalk SE program that I need to change the IP...
Replies
2
Views
102
Hey all, i have a panelview screen (image attached), with 4 items on it. Program 1, Program 2, ...3, ...4. The PLC i am using is a compactlogix...
Replies
5
Views
188
Greetings I have a problem, my system is the following: wincc v8.0 (demo), logo8.3, abb m2m analyzer. I created some pages to display the...
Replies
0
Views
75
We had one go down. we have a new one. Their emergency Number don't work. The Model is TLSA046AAH-330N01-007 A catalog says we need software TET...
Replies
2
Views
172
Back
Top Bottom