WinCC OA provides the function panelSize for this purpose.
The following code (used inside of a panel) returns the current size in w and h of the panel itself:
Code: Select all
int w, h;
panelSize("", w, h, true);
Code: Select all
int w, h;
panelSize(self.name, w, h, true);
Code: Select all
shape sh = getShape(...);
int w, h;
panelSize(sh.name, w, h, true);
Question: How to get the current panel size, when i have the shape instance?