Panels

How display a panel centered in an embedded module?

Start the GEDI, open the panel in which the embedded module is placed and select the embedded module. In the property editor in the Extended settings, there is an Alignment property. Set the property to AlignCenter in order to display the panel centered.

How can I configure my embedded modules so that a panel utilizes the maximum space?

With the CTRL function setScaleStyle (int style [, string moduleName]) you can change the scaling mode of the module.

If you want a panel that adjusts the display without scroll bars and is always visible, then you must set the style to SCALE_FIT_TO_MODULE.

For more details please have a look at the WinCC OA Documentation.

Is there something special to keep in mind when working with object oriented panels?

When using a public panel reference function, you should bear in mind that the function can be called by several different scripts at the same time.

If the implementation of the function is not able to handle this (e.g. if the function is not thread-safe) it must be declared as synchronized.

Are object oriented panels faster than ordinary panels?

No, due to a higher complexity for more object orientated programming object oriented panels (OOP) are slightly slower than ordinary panels.