10/7/2020 12:04 PM | |
Joined: 2/27/2020 Last visit: 5/10/2024 Posts: 10 Rating: (0) |
Hi! I have a problem with picture window navigation. Some screenshots in the attachment. 1) I have the main picture ("main.pdl"). In this Main picture, I have 10 buttons to navigate to 10 different stations. Screenshot "1.png". 2) The structure of these stations is the same. We have two picture windows (PictureWindowTop and PictureWindowCenter) on the station picture template ("station_template.PDL"). Screenshot "2.png". 3) This structure is necessary for navigation between screens on each of the stations. So when I want to go from the main page to one of 10 stations I click on the button and run the script: #include "apdefap.h" void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) { OpenPicture("station_template.Pdl"); SetPropChar("station_template.Pdl","PictureWindowCenter","PictureName","station_1_center.PDL"); SetPropChar("station_template.Pdl","PictureWindowTop","PictureName","station_1_top.PDL"); } Screenshot "3.png". 4) When I want to navigate between screens on the station page I click on the button and run the next script: SetPropChar("station_template.Pdl","PictureWindowCenter","PictureName","station_1_screen_1_center.PDL"); The same script for "screen 2" and "screen 3". Screenshots "4.png", "5.png", "6.png". This works well. 5) But there is a problem when I want to navigate back from the station page to the main. I made a button in the top menu (PictureWindowTop) to open the main page with the next script: OpenPicture("Main.PDL"); But the main page opens in PictureWindowTop, not in full screen. Screenshot "7.png". Please help me with this problem. How I must change my scripts to navigate from the station page to the main? Thank you! AttachmentWincc_Support.zip (46 Downloads) |
10/7/2020 12:54 PM | |
Joined: 5/16/2014 Last visit: 9/12/2022 Posts: 7298 Rating: (2146)
|
Hello AutoGen_9168085, usually the function "OpenPicture" is used for changing the see FAQ: https://support.industry.siemens.com/cs/ww/en/view/11868924 part:
Georg Berghof |
PS: If this post did really help you, you may use the Rate-button |
|
10/7/2020 1:03 PM | |
Joined: 2/27/2020 Last visit: 5/10/2024 Posts: 10 Rating: (0) |
Hello Georg Berghof, I am using this FAQ for navigating between screens on "station_tempate.pdl" with two PictureWindows. But how I can close "station_template.pdl" and go back to "main.pdl" without any Picture Windows? |
Follow us on