Obtain current Zoom Position of Panel in Module

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
moto3101
Posts:37
Joined: Tue Aug 22, 2017 2:04 pm

Obtain current Zoom Position of Panel in Module

Post by moto3101 »

Hello together,

I am looking for a solution for a problem with the ZoomModule function

Lets say we have a module M where we load a big panel P. The panel is bigger than the module and so it is displayed with scroll bars. So far so good.
Now I have an object O in panel P, which I would like to bring in focus, for this we obtain the x and y position of the object and use

Code: Select all

ZoomModule()
.

However, I am now looking for a way to obtain the current x and y "zoom position" of the module (

Code: Select all

getZoomFactor()
does only provide the factor).

I would also be satisfied if there would be a function to check whether a specific shape is currently in the visible range of the scrolled/zoomed panel.


Background information:
For very big panels, ZoomModule fails if called at an early stage. Just observing the _ui datapoint

Code: Select all

 .Zoom.ModuleName:
does not guarantee the module really executed the command. So, in case it fails, we need to make sure to send the ZoomModule command again after a certain time. For this, we somehow need to check whether zoomModule was successful and the shape has been "zoomed" to.


Thanks in advance!

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Obtain current Zoom Position of Panel in Module

Post by gschijndel »

With the function 'panelPosition' or the panel property 'mapToGlobal' it should be possible to determine the panel position.

2 posts • Page 1 of 1