Obtain currently opened Panel in Module

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
moto3101
Posts:37
Joined: Tue Aug 22, 2017 2:04 pm

Obtain currently opened Panel in Module

Post by moto3101 »

Hello together,

is it possible, during runtime, to obtain the currently opened panel in a module (respectively the panels size) in WCC OA 3.14?

I would like to adapt the module size based on the original panel size automatically, thus I worked with "contentsHeight" of the module, but this does not provide the actual size of the loaded panel.

If theres a better way to obtain the size please let me know.

Thanks in advance and with best regards,
moTo

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Obtain currently opened Panel in Module

Post by leoknipp »

If you want to resize a module to its original size you can use the function moduleOriginalSize().
Can you use this function to get the expected result?

Best Regards
Leopold Knipp
Senior Support Specialist

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

Re: Obtain currently opened Panel in Module

Post by gschijndel »

With the function 'rootPanel' the currently opened panel name can be obtained. This name could be used in the function 'panelSize'.

3 posts • Page 1 of 1