7/24/2024 12:24 PM | |
Posts: 8 Rating: (0) |
Hi, I'll start by saying that I'm really new to TIA so I'm still learnig. I'm working on TIA Portal V19 with an HMI (MTP1000) and I would like to add a function in case of click of a "Group" item. Is it possible? The group is made of a Text item, a Graphic item, and a rectangle, all these items are combined to create a "custom button", but i can't find the option to work with events in this group (or in any other group). Thank you in advance for any help. |
7/24/2024 12:32 PM | |
Joined: 1/21/2013 Last visit: 1/22/2025 Posts: 3447 Rating: (543) |
Hi, As found in the manual: Groups have no events for which you can configure event scripts or function lists. The events of the objects in the group work in the same way as for objects that are not grouped. Kind regards |
This contribution was helpful to1 thankful Users |
7/24/2024 12:48 PM | |
Posts: 8 Rating: (0) |
Thank you for your reply, does this mean that i have to use the "Edit" option under the right-click "Group" menu and add the function to every single object? Again, thank you for your reply. |
7/25/2024 4:47 AM | |
Joined: 1/21/2013 Last visit: 1/22/2025 Posts: 3447 Rating: (543)
|
Hi, You would probably not need to configure an event on every single object in the group, especially if you were programming the same functionality. But yes, you would need to configure an event on at least one object within the group. However, if you want the entire group to provide an OnClick event, instead of adding this event to all of the objects, simply add a hidden button that covers the entire group. But instead of using the Visibility property, set the Opacity property to 0. Kind regards |
This contribution was helpful to2 thankful Users |
Follow us on