4/19/2022 1:21 PM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4353 Rating: (1454)
|
Faceplate pop up formatiing and Windows Flags Hi, The Faceplate Pop up formatting could be configured by Windows flags parameter. This could be used, for example, to hide the close button on the title bar. HMIWindowsFlag parameter is a byte where each bit has a meaning:
TIP: you can use also system constants to do it and "|" to add different features. The system constants are:
Here there is an example of system constant use:
In this simple sample, the Windows Flag could be didactically set in the main windows and due internal tags passed to the faceplate / faceplate pop up. AttachmentFaceplateWindowFlags_20220416_2109.zip (1234 Downloads) |
Last edited by: Denilson Pegaia at: 04/19/2022 13:23:02Last edited by: Denilson Pegaia at: 07/29/2022 12:39:39Denilson Pegaia |
|
This contribution was helpful to1 thankful Users |
4/20/2022 12:07 PM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4353 Rating: (1454)
|
Faceplate Pop up – UI data Hi, It should be possible to extract some information about of Faceplate Pop-ups using UI object. The script principle to get this information are showed here. It was add some code lines to check and avoid to try access information of a nonexistent faceplate.
Many different solutions could be develped with this information. In this simple sample, the UI information is extract directly on IO fields and buttons uses these indexes to close the faceplates. AttachmentFaceplateUiData_20220417_0848.zip (1015 Downloads) |
Last edited by: Denilson Pegaia at: 04/20/2022 12:10:53Denilson Pegaia |
|
This contribution was helpful to2 thankful Users |
4/25/2022 1:13 PM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4353 Rating: (1454)
|
Popup Faceplate controlled by UI Data Hi, here there is a simple example using the last-mentioned concepts to control the number of open Faceplate Popup. Here, the “father” Faceplate checks internally if there is an open popup’s faceplate and close it before launch its.
AttachmentFaceplateControledByUiData_20220417_1706.zip (1135 Downloads) |
Last edited by: Denilson Pegaia at: 04/25/2022 13:15:26Denilson Pegaia |
|
This contribution was helpful to1 thankful Users |
5/20/2022 2:34 PM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4353 Rating: (1454)
|
Faceplate's Button dymamic graphic and text Hi, in V17 it is not possible to direct dynamise the graphic property of faceplate’s button. A suggestion in this case is to store the graphics as Types and use it with scripts to change the button appearance, using instructions like:
The follow sample project shows dynamic buttons text and graphics in this way. (special thanks to Mr. Rainer Uhl for the tip) AttachmentProject.zip (1014 Downloads) |
Last edited by: Denilson Pegaia at: 05/20/2022 14:35:24Last edited by: Denilson Pegaia at: 05/20/2022 14:36:39Denilson Pegaia |
|
This contribution was helpful to1 thankful Users |
7/12/2022 11:57 AM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4353 Rating: (1454)
|
Additional TIP for UI Data and PopUp control Hi,
The FAQ "How do you control pop-up windows in WinCC Unified PC RT and Comfort Panels via script (JavaScript examples)?" https://support.industry.siemens.com/cs/ww/en/view/109810540 complements my lasts related posts and shows additional tips about the topics: 1. Prevent a pop-up from opening multiple times 1.1 List open pop-up windows 1.2 Access the instance of a pop-up via its title 1.3 Close all open pop-up windows simultaneously 2. Properties of Pop-up Windows 2.1 Change the properties of the open pop-ups 2.2 Overview: Properties and methods of pop-up windows 3. Implement an operation lock when the pop-up is open and gives a sample projects |
Last edited by: Denilson Pegaia at: 07/12/2022 11:58:36Denilson Pegaia |
|
8/15/2022 12:33 PM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4353 Rating: (1454)
|
Authorization Authorization could also be passed as Property interface. This allow to control the user access to individual parts of the face plate. TIP: up to this current version (V17 up4) it just possible to access "default" user access (User administrator, Monitor, Operate, Remote access). Sample project Attachmentauthor.zip (1089 Downloads) |
Denilson Pegaia |
|
Follow us on