WinCC Explorer project.

ebnaviojr

Member
Join Date
Aug 2009
Location
Jeddah
Posts
10
Hi All,

I am doing WinCC explorer project and I want to program a "Static text" which will display the name of picture "caption text" (Name of the picure that is currently displayed under the "picture window1" e,i. Main Menu.pdl"). I want to display the text "Main Menu" as a text value of "static text".

Any body can help me and give me the correct procedure to do it?

Thanks.
 
Are you talking about WinCC V6.x or V7, or do you mean WinCC Flexible 200x - there's a B I G difference between them!

Hello RMA,

I am working with WinCC V7.0, I am trying to find the correct action under the "internal function" of the command tree using "Dynamic dialog" or "C-action" but i couldnt get the correct command that will satisfy my condition.

Could you please help me how to find the exact code?


Thanks a lot in advance.
 
First get your .PDL Name
Then Copy with the lengt of you pictureName -4 (remove .PDL)
After that place it to your static text

char Text[255] = "";
char PictureName = "";

PictureName = GetPictureName(lpszParent,Objectname);
strncopy(Text,PictureName, strlen(PictureName)-4);
SetText(lpszPictureName,lpszObjectName,Text);

It will be something like this.
 

Similar Topics

Hi all! I have one Multiproject (STEP7,WinCC and 4 PC) , I attached this picture: There are 3 computer (PC4 not used.): PC1,PC2,PC3. In PC3 is a...
Replies
0
Views
2,257
Hi, I am currently using ProgramExecute to open a Windows Explorer window in my application to a specific directory (WinCC 7.5). Is there a way...
Replies
1
Views
524
Hello, I was editing the properties of a button on a .pdl file in WinCC v7.2. This project is on the line HMI, and I was editing directly on line...
Replies
7
Views
2,860
Runtime configuration of simatic hmi wincc explorer made screens & automation system Hi Friends, How do I configure and execute RUNTIME of...
Replies
6
Views
3,286
I have installed WinCC explorer V7.4SP1 and SIMATIC NET V14 and I can't find the component "WinCC appl" in the station configurator. On a...
Replies
0
Views
1,599
Back
Top Bottom