CONTROL: Propogating an event from reference panel to owner

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
5 posts • Page 1 of 1
willw
Posts:22
Joined: Thu Nov 19, 2015 4:40 pm

CONTROL: Propogating an event from reference panel to owner

Post by willw »

I have a graphics object used as a reference with a push button on it. Within the click handler, I need to propagate the event to code in the owning panel, ie I want to do something like this:

Code: Select all

?// [pbRefPanel] [1] - [Clicked]
main() 
{ // Handler for button click
  parent.handleMyClick($SomeParam);
}
I think I could achieve this effect by creating a DP and writing to it; I'd rather keep the whole thing in code in the panels, rather than create extra dependencies on entities that exist outside the panels in the code.

TIA

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: CONTROL: Propogating an event from reference panel to owner

Post by mkoller »

Currently there's no other way than using an internal DP

willw
Posts:22
Joined: Thu Nov 19, 2015 4:40 pm

Re: CONTROL: Propogating an event from reference panel to owner

Post by willw »

As I feared. Thanks for that.

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: CONTROL: Propogating an event from reference panel to owner

Post by RudiKreiner »

If I understood the presentation at the User Days in London properly, this should be possible with the new implemtation of object oriented panels feature that was announced for WinCC OA V3.15.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: CONTROL: Propogating an event from reference panel to owner

Post by mkoller »

Yes, correct.

5 posts • Page 1 of 1